* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('/V2/assets/images/bg-pattern-1.jpg') center/cover no-repeat;
    mix-blend-mode: color-burn;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.bg-radial {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(0, 131, 255, 0.25) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(0, 131, 255, 0.2) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}


.modal-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Success State */
.success-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 56px 48px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: none;
}

.success-card.show {
    display: block;
}

.success-card h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 36px;
    color: #0f172a;
    margin-bottom: 16px;
}

.success-card p {
    color: #475569;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 16px;
    position: absolute;
    top: -9px;
    left: 12px;
    background: #fff;
    padding: 0 6px;
    color: #0f172a;
    letter-spacing: 0.02em;
    display: none;
}

.form-group.has-value label,
.form-group.focused label {
    display: block;
}

.form-control {
    width: 100%;
    padding: 16px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s ease;
    outline: none;
}

.form-control:focus {
    border-color: #1e293b;
    background: #ffffff;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control.is-invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-control.is-invalid:focus {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.78rem;
    text-align: right;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Buttons */
.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    flex: 1;
    padding: 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-close {
    background: transparent;
    border: 1.5px solid #3b82f6;
    color: #3b82f6;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-close:hover {
    background: #eff6ff;
}

.btn-submit {
    background: #94a3b8;
    color: #fff;
}

.btn-submit.active {
    background: #3b82f6;
}

.btn-submit.active:hover {
    background: #2563eb;
}

.btn-submit:disabled {
    cursor: not-allowed;
}

.btn-submit {
    background: #ccc;
    cursor: pointer;
    transition: 0.2s;
}


.btn-submit:hover {
    opacity: 0.9;
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    display: none;
}

.alert.show {
    display: block;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.password-wrapper label {
    top: -9px;
    left: 12px;
    z-index: 1;
}


.input-icon-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 3rem;
}

.toggle-pw {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.toggle-pw:hover {
    color: #1e293b;
}

/* --- Resend Verification --- */
.success-divider {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 1.5rem 0 1.25rem;
}

.resend-label {
    font-size: 13px;
    color: #888;
    margin: 0 0 0.75rem;
}

.btn-resend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 1.25rem;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.btn-resend:not(:disabled):hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-resend:not(:disabled):active {
    transform: scale(0.98);
}

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

.resend-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.08);
    font-size: 11px;
    font-weight: 600;
    padding: 0 4px;
}

.resend-alert {
    font-size: 13px;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

.resend-alert.show {
    display: block;
}

.resend-alert.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.resend-alert.error {
    background: #ffebee;
    color: #c62828;
}

@media (max-width: 540px) {
    body {
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 24px 16px;
    }

    .modal-card {
        border-radius: 12px;
        padding: 28px 20px;
    }

    .success-card {
        border-radius: 12px;
        padding: 40px 24px;
    }

    .success-card h2 {
        font-size: 26px;
        line-height: 32px;
    }

    .success-card p {
        font-size: 14px;
        line-height: 24px;
    }

    .form-control {
        padding: 13px 14px;
        font-size: 0.9rem;
    }

    .btn-row {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .btn {
        width: 100%;
        padding: 14px;
        font-size: 0.9rem;
    }

}