.cms-auth-page {
    min-height: 100vh;
    margin: 0;
    background: #eef4fb;
}

.cms-auth-wrapper {
    display: flex;
    min-height: 100vh;
}

.cms-auth-visual {
    flex: 1.05;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2.5rem;
    background: linear-gradient(145deg, #0d47a1 0%, #1976d2 45%, #42a5f5 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cms-auth-visual::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.cms-auth-visual::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.cms-auth-visual img {
    width: min(420px, 90%);
    max-height: 340px;
    object-fit: contain;
    margin-bottom: 2rem;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18));
    position: relative;
    z-index: 1;
}

.cms-auth-visual h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.cms-auth-visual p {
    font-size: 1.15rem;
    opacity: 0.92;
    max-width: 420px;
    text-align: center;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.cms-auth-panel {
    flex: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.cms-auth-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(21, 101, 192, 0.12);
    padding: 2.25rem 2rem 2rem;
    border-top: 5px solid var(--cms-primary, #1e88e5);
}

.cms-auth-brand {
    text-align: center;
    margin-bottom: 1.25rem;
}

.cms-auth-brand a {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cms-primary-dark, #1565c0);
    text-decoration: none;
}

.cms-auth-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #263238;
    text-align: center;
    margin-bottom: 0.35rem;
}

.cms-auth-subheading {
    text-align: center;
    color: #607d8b;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.cms-auth-card .form-control {
    font-size: 1.12rem;
    padding: 0.75rem 1rem;
    height: auto;
    border-radius: 10px;
}

.cms-auth-card .input-group-text {
    font-size: 1.05rem;
    border-radius: 0 10px 10px 0;
    background: #f5f9fc;
}

.cms-auth-card .input-group .form-control {
    border-radius: 10px 0 0 10px;
}

.cms-auth-card .btn {
    font-size: 1.08rem;
    font-weight: 600;
    padding: 0.72rem 1rem;
    border-radius: 10px;
}

.cms-auth-card .btn-primary {
    background: linear-gradient(135deg, #1976d2 0%, #1e88e5 100%);
    border: none;
    box-shadow: 0 8px 18px rgba(30, 136, 229, 0.28);
}

.cms-auth-card .btn-primary:hover,
.cms-auth-card .btn-primary:focus {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    box-shadow: 0 10px 22px rgba(30, 136, 229, 0.34);
}

.cms-auth-card .btn-outline-primary {
    color: #1565c0;
    border-color: #90caf9;
    background: #f5f9fc;
}

.cms-auth-card .btn-outline-primary:hover {
    background: #e3f2fd;
    color: #0d47a1;
    border-color: #64b5f6;
}

.cms-auth-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cms-auth-links {
    margin-top: 1.25rem;
    text-align: center;
}

.cms-auth-links a {
    color: #1565c0;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.cms-auth-links a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.cms-auth-note {
    margin-top: 1rem;
    text-align: center;
    color: #78909c;
    font-size: 0.95rem;
}

.cms-auth-card .alert {
    font-size: 1rem;
    border-radius: 10px;
}

@media (max-width: 991px) {
    .cms-auth-wrapper {
        flex-direction: column;
    }

    .cms-auth-visual {
        min-height: 280px;
        padding: 2rem 1.5rem;
    }

    .cms-auth-visual img {
        width: min(280px, 80%);
        margin-bottom: 1rem;
    }

    .cms-auth-visual h2 {
        font-size: 1.5rem;
    }

    .cms-auth-visual p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .cms-auth-actions {
        grid-template-columns: 1fr;
    }

    .cms-auth-card {
        padding: 1.5rem 1.25rem;
    }
}
