/* assets/css/auth.css — shared split-panel layout for login.php, forgot_password.php, reset_password.php */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green:       #006B3F;
    --green-dark:  #004D2E;
    --green-light: #e6f4ec;
    --red:         #EF3340;
    --text:        #0f172a;
    --muted:       #64748b;
    --border:      #e2e8f0;
    --surface:     #f8fafc;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: var(--text);
    min-height: 100vh;
    display: flex;
}

/* ── Left panel ─────────────────────────────── */
.lp-left {
    width: 52%;
    min-height: 100vh;
    background: var(--green-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 3.5rem;
    position: relative;
    overflow: hidden;
}

/* Geometric accent shapes */
.lp-left::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.lp-left::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(239,51,64,0.08);
}

.lp-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}
.lp-brand img { height: 42px; width: auto; }
.lp-brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}
.lp-brand-name span { color: var(--red); }

.lp-hero {
    position: relative;
    z-index: 2;
}
.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.85);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}
.lp-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
}
.lp-headline {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1.25rem;
}
.lp-headline em {
    font-style: normal;
    color: var(--red);
}
.lp-subline {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
    max-width: 400px;
    margin-bottom: 2.5rem;
}

.lp-features {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.lp-feat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
}
.lp-feat-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
}

.lp-footer-text {
    position: relative;
    z-index: 2;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
}

/* ── Right panel ────────────────────────────── */
.lp-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: #fff;
}

.lp-card {
    width: 100%;
    max-width: 420px;
}

.lp-card-header {
    margin-bottom: 2.25rem;
}
.lp-card-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}
.lp-card-header p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Error alert */
.lp-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}
.lp-alert i { margin-top: 1px; flex-shrink: 0; }

/* Success alert (forgot/reset password confirmations) */
.lp-alert-success {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: var(--green-light);
    border: 1px solid #bbe6cd;
    color: var(--green-dark);
    padding: 0.875rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}
.lp-alert-success i { margin-top: 1px; flex-shrink: 0; }

/* Form fields */
.lp-field { margin-bottom: 1.25rem; }

.lp-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.45rem;
    letter-spacing: 0.01em;
}

.lp-input-wrap {
    position: relative;
}
.lp-input-wrap .lp-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.2s;
}
.lp-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.6rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}
.lp-input::placeholder { color: #94a3b8; font-weight: 400; }
.lp-input:focus {
    background: #fff;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0,107,63,0.12);
}
.lp-input:focus ~ .lp-icon,
.lp-input-wrap:focus-within .lp-icon { color: var(--green); }

/* Password toggle */
.lp-pw-toggle {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}
.lp-pw-toggle:hover { color: var(--muted); }
.lp-pw-toggle:focus-visible {
    outline: 2px solid var(--green);
    border-radius: 4px;
}

/* Hint text */
.lp-hint {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 1.25rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.lp-hint i { font-size: 0.75rem; color: #cbd5e1; }
.lp-hint a { color: var(--green); font-weight: 600; text-decoration: none; }
.lp-hint a:hover { text-decoration: underline; }

/* Submit button */
.lp-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    background: var(--green);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(0,107,63,0.28);
}
.lp-btn:hover {
    background: var(--green-dark);
    box-shadow: 0 6px 20px rgba(0,107,63,0.36);
    transform: translateY(-1px);
}
.lp-btn:active { transform: translateY(0); }
.lp-btn:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}
/* Loading feedback so a click never feels like it did nothing */
.lp-btn.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.lp-btn.is-loading * { visibility: hidden; }
.lp-btn.is-loading::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 16px; height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lp-spin 0.6s linear infinite;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .lp-btn.is-loading::after { animation-duration: 1.4s; }
}

/* Bottom note */
.lp-bottom {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
}
.lp-bottom strong { color: var(--text); }
.lp-bottom a { color: var(--green); font-weight: 700; text-decoration: none; }
.lp-bottom a:hover { text-decoration: underline; }

/* Page fade-in */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lp-card { animation: fadeUp 0.45s ease both; }
@media (prefers-reduced-motion: reduce) {
    .lp-card { animation: none; }
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
    .lp-left { width: 46%; padding: 2.5rem 2rem; }
}
@media (max-width: 700px) {
    body { flex-direction: column; }
    .lp-left { display: none; }
    .lp-right { padding: 2rem 1.25rem; align-items: flex-start; padding-top: 3rem; }
}
