/* Auth pages (Login / Register / Forgot / Reset) — two-panel card design */

:root {
    --auth-blue: #3a7bf6;
    --auth-blue-dark: #2f6ae0;
    --auth-mint: #9be7c4;
    --auth-mint-soft: #d6f5e6;
    --auth-ink: #2b3445;
    --auth-muted: #98a2b3;
    --auth-border: #e7eaf0;
    --auth-field: #f3f5f9;
}

* { box-sizing: border-box; }

body.auth-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--auth-ink);
    background: #f4fbf7;
    position: relative;
    overflow-x: hidden;
}

/* soft organic blobs in the background */
body.auth-page::before,
body.auth-page::after {
    content: "";
    position: fixed;
    border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
    background: radial-gradient(circle at 30% 30%, var(--auth-mint), var(--auth-mint-soft));
    filter: blur(4px);
    opacity: .7;
    z-index: 0;
}

body.auth-page::before { width: 460px; height: 460px; top: -160px; right: -120px; }
body.auth-page::after  { width: 520px; height: 520px; bottom: -200px; left: -160px; }

.auth-card {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 560px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(43, 52, 69, .15);
    overflow: hidden;
}

/* ---------------------------------------------------- illustration panel */
.auth-illustration {
    flex: 1 1 52%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(160deg, #eaf2ff 0%, #f3f8ff 60%, #eafaf2 100%);
}

.auth-illustration svg { width: 100%; height: auto; max-height: 360px; }

.auth-illustration .auth-tagline {
    margin-top: 24px;
    font-size: 14px;
    color: var(--auth-muted);
    text-align: center;
}

/* ----------------------------------------------------------- form panel */
.auth-form {
    flex: 1 1 48%;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--auth-blue);
    margin-bottom: 28px;
}

.auth-logo i { font-size: 24px; }

.auth-title { font-size: 30px; font-weight: 700; margin: 0 0 10px; }

.auth-subtitle { font-size: 13.5px; color: var(--auth-muted); margin: 0 0 26px; line-height: 1.6; }

/* input with leading icon */
.auth-field {
    display: flex;
    align-items: center;
    background: var(--auth-field);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
    transition: border-color .15s, background .15s;
}

.auth-field:focus-within {
    background: #fff;
    border-color: var(--auth-blue);
}

.auth-field .auth-field-icon {
    color: var(--auth-muted);
    font-size: 18px;
    margin-right: 12px;
    display: flex;
}

.auth-field .auth-field-body { flex: 1; min-width: 0; }

.auth-field label {
    display: block;
    font-size: 11px;
    color: var(--auth-muted);
    margin-bottom: 2px;
}

.auth-field input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--auth-ink);
    padding: 0;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 22px;
    font-size: 13px;
}

.auth-row .form-check-label { color: var(--auth-muted); }
.auth-row a { color: var(--auth-muted); text-decoration: none; }
.auth-row a:hover { color: var(--auth-blue); }

.auth-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-auth {
    border: 0;
    border-radius: 22px;
    padding: 11px 26px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
    text-decoration: none;
    display: inline-block;
}

.btn-auth-primary {
    background: var(--auth-blue);
    color: #fff;
    box-shadow: 0 8px 18px rgba(58, 123, 246, .35);
}
.btn-auth-primary:hover { background: var(--auth-blue-dark); color: #fff; }

.btn-auth-outline {
    background: #fff;
    color: var(--auth-ink);
    border: 1px solid var(--auth-border);
}
.btn-auth-outline:hover { border-color: var(--auth-blue); color: var(--auth-blue); }

.auth-foot { margin-top: 26px; font-size: 13px; color: var(--auth-muted); }
.auth-foot a { color: var(--auth-blue); text-decoration: none; font-weight: 600; }

.auth-status {
    background: #e9f7ef;
    border: 1px solid #b7e4c7;
    color: #1e7e44;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 18px;
}

.auth-validation { color: #d9534f; font-size: 13px; margin-bottom: 12px; }
.auth-validation ul { margin: 0; padding-left: 18px; }
.field-validation-error, .text-danger { color: #d9534f; font-size: 12px; }

/* responsive: stack panels */
@media (max-width: 768px) {
    .auth-illustration { display: none; }
    .auth-form { padding: 36px 28px; }
}
