:root {
    /* Updated Color Palette */
    --pma-deep: #090909;
    --pma-navy: #090909;
    --pma-sea: #4b7ed1;
    --pma-gold: #4b7ed1;
    /* Replaced gold with primary blue for text highlights */
    --pma-soft-bg: #f0f4f8;
    --white: #ffffff;
    --error: #ef4444;
}

body {
    background-color: var(--pma-soft-bg);
    margin: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23090909' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-screen {
    min-height: 113vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 168px 20px 60px;
}

.auth-card-premium {
    background: var(--white);
    width: 100%;
    max-width: 1160px;
    min-height: 650px;
    border-radius: 40px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(9, 9, 9, 0.15);
    border: 1px solid rgba(255, 255, 255, 1);
}

/* LEFT BRANDING */
.brand-panel {
    width: 45%;
    position: relative;
    padding: 60px;
    background: var(--pma-deep);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.brand-overlay {
    position: absolute;
    inset: 0;
    /* Updated gradient using the new colors */
    background: linear-gradient(
        160deg,
        rgba(9, 9, 9, 0.95) 0%,
        rgba(75, 126, 209, 0.7) 100%
    );
    z-index: 2;
}

.brand-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.glass-info {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px;
}

.glass-info h2 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: #ffffff;
}

.glass-info h2 span {
    color: var(--pma-gold);
}

.glass-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0;
}

/* RIGHT SIDE FORM */
.form-panel {
    width: 55%;
    padding: 60px 80px;
    background: var(--white);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.back-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.back-btn:hover {
    color: var(--pma-sea);
}

.form-header h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--pma-navy);
    letter-spacing: -1px;
    margin-bottom: 5px;
}

.btn-sso {
    width: 100%;
    padding: 16px;
    border-radius: 20px;
    border: 2px solid #f1f5f9;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    color: var(--pma-navy);
    cursor: pointer;
    transition: 0.3s;
    margin-top: 30px;
}

.btn-sso:hover {
    border-color: var(--pma-sea);
    background: #f8fafc;
    transform: translateY(-2px);
}

.divider {
    display: flex;
    align-items: center;
    margin: 35px 0;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 2px solid #f1f5f9;
}

.divider:not(:empty)::before {
    margin-right: 20px;
}

.divider:not(:empty)::after {
    margin-left: 20px;
}

/* INPUT FIELDS */
.input-group-pma {
    margin-bottom: 24px;
    position: relative;
}

.input-group-pma label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--pma-navy);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.w-21 {
    width: 21%;
}

.field-container {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 20px;
    color: #94a3b8;
    font-size: 18px;
    z-index: 10;
    pointer-events: none;
}

.pma-input {
    width: 100%;
    padding: 18px 25px 18px 55px;
    border-radius: 18px;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    font-size: 15px;
    font-weight: 600;
    color: var(--pma-navy);
    transition: 0.3s;
    box-sizing: border-box;
}

.pma-input::placeholder {
    color: #cbd5e1;
    font-weight: 500;
}

.pma-input:focus {
    background: #fff;
    border-color: var(--pma-sea);
    outline: none;
    /* Updated shadow to match the new blue */
    box-shadow: 0 10px 25px -5px rgba(75, 126, 209, 0.15);
}

.pma-input:focus + .field-icon {
    color: var(--pma-sea);
}

.btn-anchor {
    width: 100%;
    padding: 20px;
    border-radius: 20px;
    border: none;
    background: var(--pma-sea);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.4s;
    box-shadow: 0 20px 40px -10px rgba(75, 126, 209, 0.4);
}

.btn-anchor:hover {
    transform: translateY(-3px);
    background: var(--pma-navy);
    box-shadow: 0 25px 50px -10px rgba(9, 9, 9, 0.3);
}

.btn-anchor:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.secure-badge {
    margin-top: 40px;
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.secure-badge i {
    color: var(--pma-sea);
}

/* VALIDATION & SHAKE EFFECT */
.is-invalid {
    border-color: var(--error) !important;
    background-color: #fef2f2 !important;
    color: var(--error) !important;
}

.is-invalid:focus {
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.15) !important;
}

.error-message {
    color: var(--error);
    font-size: 13px;
    font-weight: 700;
    margin-top: 8px;
    display: none;
    padding-left: 10px;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

.shake-anim {
    animation: shake 0.4s ease-in-out;
}

/* OTP SCREEN STYLES */
#otpScreen {
    display: none;
    text-align: center;
}

.otp-icon-wrap {
    width: 80px;
    height: 80px;
    background: #e8f0fe;
    color: var(--pma-sea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    direction: ltr;
}

.otp-box {
    width: 60px;
    height: 70px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--pma-navy);
    transition: 0.3s;
}

.otp-box:focus {
    background: #fff;
    border-color: var(--pma-sea);
    outline: none;
    box-shadow: 0 10px 20px rgba(75, 126, 209, 0.15);
    transform: translateY(-2px);
}

.resend-text {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 30px;
}

.resend-text a {
    color: var(--pma-sea);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    cursor: pointer;
}

.resend-text a:hover {
    color: var(--pma-navy);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
    .brand-panel {
        display: none;
    }

    .form-panel {
        width: 100%;
        padding: 60px 40px;
    }

    .auth-card-premium {
        max-width: 600px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .auth-screen {
        min-height: 100vh;
        height: auto;
        padding: 100px 15px 40px;
        align-items: center;
    }

    .auth-card-premium {
        border-radius: 30px;
    }

    .form-panel {
        padding: 40px 30px;
    }

    .back-btn {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 20px;
        align-self: flex-start;
        display: inline-flex;
    }

    .form-header h3 {
        font-size: 1.8rem;
    }

    .otp-box {
        width: 50px;
        height: 60px;
        gap: 10px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .auth-screen {
        min-height: 100vh;
        padding: 100px 15px 40px;
        align-items: center;
    }

    .auth-card-premium {
        border-radius: 24px;
    }

    .form-panel {
        padding: 30px 20px;
    }

    .form-header h3 {
        font-size: 1.6rem;
    }

    .pma-input {
        padding: 15px 20px 15px 45px;
        font-size: 14px;
    }

    .field-icon {
        left: 15px;
        font-size: 16px;
    }

    .btn-anchor {
        padding: 16px;
        font-size: 16px;
        border-radius: 16px;
    }

    .otp-input-group {
        gap: 10px;
    }

    .otp-box {
        width: 45px;
        height: 55px;
        font-size: 18px;
    }
}
