/* ═══════════════════════════════════════════════════════════════════
   reset-password.css  —  Shared styles for forgot-password & reset-password
   Design system matches profile.css (--primary dark teal / --primary-light)
═══════════════════════════════════════════════════════════════════ */

:root {
    --primary:        #030e0d;
    --primary-light:  #05c78b;
    --dark:           #012e28;
    --dark-medium:    #024d43;
    --brand-green:    #037c69;
    --shadow-sm:      0 2px 10px rgba(0,0,0,0.08);
    --shadow-md:      0 8px 20px rgba(0,0,0,0.12);
    --shadow-primary: 0 4px 12px rgba(3,124,105,0.3);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f0f4f0;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* ── LAYOUT ────────────────────────────────────────────────────────── */

.auth-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── LEFT — BRAND PANEL ─────────────────────────────────────────────── */

.auth-brand-panel {
    flex: 0 0 400px;
    background: linear-gradient(160deg, var(--primary) 0%, var(--dark-medium) 50%, var(--dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern overlay */
.auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(5,199,139,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(5,199,139,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.brand-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}

.brand-logo {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(5,199,139,0.4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-light);
    box-shadow: 0 0 30px rgba(5,199,139,0.15);
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.brand-tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.brand-divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    margin: 0 auto 2rem;
}

/* Steps */
.brand-steps {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.45;
    transition: opacity 0.3s;
}

.step.step-active { opacity: 1; }
.step.step-done   { opacity: 0.75; }

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.3s;
}

.step.step-active .step-icon {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
    box-shadow: 0 0 15px rgba(5,199,139,0.4);
}

.step.step-done .step-icon {
    background: rgba(5,199,139,0.2);
    border-color: rgba(5,199,139,0.5);
    color: var(--primary-light);
}

.step-text {
    display: flex;
    flex-direction: column;
}

.step-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.step-title {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.step.step-active .step-title { color: #fff; font-weight: 600; }

.step-connector {
    width: 2px;
    height: 24px;
    background: rgba(255,255,255,0.1);
    margin-left: 19px;
}

.step-connector-done {
    background: rgba(5,199,139,0.3);
}

.brand-info-box {
    margin-top: 2rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(5,199,139,0.2);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
}

.brand-info-box i {
    color: var(--primary-light);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── RIGHT — FORM PANEL ─────────────────────────────────────────────── */

.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f0f4f0;
}

.form-container {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    width: 100%;
    max-width: 460px;
    border-top: 4px solid var(--brand-green);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── FORM HEADER ─────────────────────────────────────────────────────── */

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--primary), var(--dark-medium));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.6rem;
    color: white;
    box-shadow: var(--shadow-primary);
    transition: transform 0.3s ease;
}

.form-icon:hover { transform: scale(1.05); }

.form-icon-lock {
    background: linear-gradient(135deg, var(--dark-medium), var(--brand-green));
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

.email-highlight {
    color: var(--brand-green);
    display: inline-block;
    margin-top: 0.25rem;
}

/* ── ALERTS ──────────────────────────────────────────────────────────── */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.alert i { margin-top: 2px; flex-shrink: 0; }

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-success i { color: #10b981; }

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

.alert-error i { color: #ef4444; }

/* ── FORM ELEMENTS ───────────────────────────────────────────────────── */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.875rem;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 2.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.25s ease;
    outline: none;
}

.form-input::placeholder { color: #cbd5e1; }

.form-input:focus {
    border-color: var(--brand-green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(3,124,105,0.12);
}

.toggle-pw {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.toggle-pw:hover { color: var(--brand-green); }

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.4rem;
}

/* ── STRENGTH BAR ────────────────────────────────────────────────────── */

.strength-bar-wrapper {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: all 0.35s ease;
    width: 0;
}

.strength-weak   { width: 33%; background: linear-gradient(90deg, #ef4444, #f87171); }
.strength-medium { width: 66%; background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.strength-strong { width: 100%; background: linear-gradient(90deg, #10b981, var(--primary-light)); }

.strength-label, .match-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.3rem;
    min-height: 1rem;
    transition: color 0.2s;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────── */

.btn-primary-full {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary), var(--dark-medium));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-primary);
}

.btn-primary-full:hover {
    background: linear-gradient(135deg, var(--dark-medium), var(--dark));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(1,46,40,0.35);
}

.btn-primary-full:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-outline-full {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--brand-green);
    color: var(--brand-green);
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
}

.btn-outline-full:hover {
    background: var(--brand-green);
    color: white;
    transform: translateY(-1px);
}

/* ── FOOTER ──────────────────────────────────────────────────────────── */

.form-footer {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.back-link {
    font-size: 0.875rem;
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover { color: var(--dark); }

.success-actions {
    text-align: center;
}

.resend-note {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .auth-brand-panel { flex: 0 0 320px; padding: 2rem 1.75rem; }
    .brand-name { font-size: 1.4rem; }
}

@media (max-width: 700px) {
    .auth-wrapper { flex-direction: column; }

    .auth-brand-panel {
        flex: none;
        padding: 2rem 1.5rem;
        border-radius: 0;
    }

    .brand-steps { display: none; } /* simplified on mobile */

    .auth-form-panel {
        padding: 1.5rem 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .form-container {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
    }

    .brand-logo { width: 60px; height: 60px; font-size: 1.5rem; }
    .brand-name { font-size: 1.25rem; }
    .brand-tagline { margin-bottom: 0; }
    .brand-divider { display: none; }
}
