:root {
    --pma-deep: #090a0a;
    --pma-navy: #090a0a;
    --pma-sea: #4b7ed1;
    --pma-gold: #4b7ed1;
    --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='%23090a0a' 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: flex-start;
    justify-content: center;
    padding: 168px 20px 60px;
    box-sizing: border-box;
}

.terms-checkbox {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 18px;
    height: 18px;
    accent-color: var(--pma-sea);
    cursor: pointer;
}

/* THE PREMIUM CARD */
.auth-card-premium {
    background: var(--white);
    width: 100%;
    max-width: 1160px;
    min-height: 720px;
    border-radius: 40px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(9, 10, 10, 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-bg-image {
    position: absolute;
    inset: 0;
    background-image: url("https://pondicherrymaritime.com/img/magazine/7547424287589943.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    /* Lowered opacity so the dark color pops */
    z-index: 1;
}

.w-21 {
    width: 21%;
}

.brand-overlay {
    position: absolute;
    inset: 0;
    /* Updated gradient using the new colors */
    background: linear-gradient(
        160deg,
        rgba(9, 10, 10, 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 Feature Card */
.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;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

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

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.feature-list li i {
    color: var(--pma-gold);
    font-size: 18px;
}

/* 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;
    text-decoration: none;
    color: #94a3b8;
    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: 12px;
    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;
}

/* 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;
}

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

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

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

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

.prefix-badge {
    background: #e2e8f0;
    padding: 18px 15px;
    border-radius: 18px 0 0 18px;
    font-weight: 800;
    color: var(--pma-navy);
    font-size: 14px;
    border: 2px solid #f1f5f9;
    border-right: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pma-input-prefixed {
    border-radius: 0 18px 18px 0 !important;
}

/* Buttons */
.btn-anchor {
    width: 100%;
    padding: 20px;
    border-radius: 20px;
    border: none;
    background: var(--pma-sea);
    /* Solid primary blue */
    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, 10, 10, 0.3);
}

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

/* 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: 12px;
    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;
    /* Light tint of the new blue */
    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;
}

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

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

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

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

@media (max-width: 768px) {
    .auth-screen {
        min-height: 100vh;
        height: auto;
        padding: 100px 15px 40px;
        /* Added padding to clear header */
        align-items: center;
        /* Properly centered */
    }

    .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;
        /* Added padding to clear header */
        align-items: center;
        /* Properly centered */
    }

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

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

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

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

    .prefix-badge {
        padding: 15px 12px;
        font-size: 13px;
    }

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

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