* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #092f57, #0d4c8c);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 18px;
}

.auth-right {
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-card,
.auth-right form {
    width: 100%;
    max-width: 720px;
    background: #fff;
    padding: 42px;
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .25);
    animation: fadeIn .45s ease;
}

.auth-card {
    max-width: 460px;
}

.auth-header,
.auth-right form h2 {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h2,
.auth-right form h2 {
    font-size: 32px;
    color: #0f172a;
    margin: 0 0 10px;
    font-weight: 800;
}

.auth-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-group i:first-child {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #17345E;
    font-size: 16px;
}

.input-group input {
    width: 100%;
    height: 58px;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: #f8fafc;
    padding: 0 48px;
    font-size: 15px;
    outline: none;
    transition: .3s;
}

.input-group input:focus {
    background: #fff;
    border-color: #0040ff;
    box-shadow: 0 0 0 4px rgba(255, 122, 0, .12);
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    cursor: pointer;
}

.extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 24px;
    font-size: 14px;
}

.extra label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #334155;
}

.extra a,
.auth-switch a,
.auth-footer a {
    color: #0040ff;
    font-weight: 800;
    text-decoration: none;
}

.auth-btn {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #17345E, #0040ff);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: .3s;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 122, 0, .28);
}

.auth-switch,
.auth-footer {
    text-align: center;
    margin-top: 22px;
    color: #334155;
    font-size: 15px;
}

.error-box,
.success-box {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
}

.error-box {
    background: #fee2e2;
    color: #b91c1c;
}

.success-box {
    background: #dcfce7;
    color: #15803d;
}

#strengthBar {
    height: 8px;
    border-radius: 30px;
    background: #e2e8f0;
    margin: -5px 0 20px;
}

/* ============= VERIFY EMAIL - RESEND OTP Add this after .auth-footer =========== */
.auth-footer p {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 14px;
}

/* Resend OTP button */
.resend-otp-btn {
    border: none;
    background: none;
    color: #0040ff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: .3s;
}

/* Hover */
.resend-otp-btn:hover {
    background: #eff6ff;
    color: #17345E;
}

/* Disabled while sending */
.resend-otp-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Small spacing between verification button and resend section */
.auth-card form+.auth-footer {
    margin-top: 22px;
}

/* =========================================
   VERIFY EMAIL - RESEND OTP
   ========================================= */

.auth-footer p{
    margin:0 0 8px;
    color:#64748b;
    font-size:14px;
}

.resend-otp-btn{
    border:none;
    background:none;
    color:#0040ff;
    font-family:'Poppins',sans-serif;
    font-size:15px;
    font-weight:800;
    cursor:pointer;
    padding:4px 8px;
    border-radius:8px;
    transition:.3s;
}

.resend-otp-btn:hover{
    background:#eff6ff;
    color:#17345E;
}

.resend-otp-btn:disabled{
    opacity:.6;
    cursor:not-allowed;
}

.auth-card form + .auth-footer{
    margin-top:22px;
}

.auth-switch, 
.auth-footer{ 
    text-align:center; 
    margin-top:22px; 
    color:#334155; 
    font-size:15px; 
}


/* =========================================
   VERIFY EMAIL - RESEND OTP
   ========================================= */

.auth-footer p{
    margin:0 0 8px;
    color:#64748b;
    font-size:14px;
}

.resend-otp-btn{
    border:none;
    background:none;
    color:#0040ff;
    font-family:'Poppins',sans-serif;
    font-size:15px;
    font-weight:800;
    cursor:pointer;
    padding:4px 8px;
    border-radius:8px;
    transition:.3s;
}

.resend-otp-btn:hover{
    background:#eff6ff;
    color:#17345E;
}

.resend-otp-btn:disabled{
    opacity:.6;
    cursor:not-allowed;
}

.auth-card form + .auth-footer{
    margin-top:22px;
}


.error-box, 
.success-box{ 
    padding:12px 14px; 
    border-radius:12px; 
    margin-bottom:18px; 
    font-size:14px; 
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(max-width:768px) {

    .auth-card,
    .auth-right form {
        max-width: 520px;
        padding: 36px 30px;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media(max-width:520px) {
    .auth-container {
        padding: 25px 14px;
    }

    .auth-card,
    .auth-right form {
        padding: 32px 22px;
        border-radius: 22px;
    }

    .auth-header h2,
    .auth-right form h2 {
        font-size: 26px;
    }

    .input-group input {
        height: 54px;
        font-size: 14px;
    }

    .extra {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-btn {
        height: 54px;
    }
}