/**
 * File: auth.css
 * Location: /css/auth.css
 * Rebuilt: 2026-08-20 — honey-gold theme, polished login/register/profile auth cards.
 * Uses the site CSS variables (see header.php) with honey fallbacks.
 */

:root {
    --auth-gold: #F9A826;
    --auth-gold-dark: #E08E12;
    --auth-amber: #784C0C;
    --auth-cream: #FFF8E8;
    --auth-ink: #262220;
    --auth-muted: #6b5d52;
    --auth-border: #e7ddca;
}

/* Center the auth card vertically within a warm band */
.auth-section {
    background: linear-gradient(180deg, var(--auth-cream) 0%, #f3e7cd 100%);
    padding: 64px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* Auth Card */
.auth-box {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(120, 76, 12, 0.16);
    padding: 44px 40px 36px;
    margin: 0 auto;
    max-width: 460px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--auth-border);
}

/* Honey accent bar along the top of the card */
.auth-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--auth-gold), #FFC95C, var(--auth-gold));
}

.auth-logo {
    text-align: center;
    margin-bottom: 8px;
    font-size: 34px;
    color: var(--auth-gold);
    line-height: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h1,
.auth-header h2 {
    color: var(--auth-amber);
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 28px;
}

.auth-subheader,
.auth-header p {
    color: var(--auth-muted);
    margin: 0;
    font-size: 15px;
}

.auth-box .form-group {
    margin-bottom: 20px;
    position: relative;
}

.auth-box label {
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: .2px;
    display: block;
    margin-bottom: 7px;
    color: var(--auth-ink);
}

.auth-box .form-control {
    height: 50px;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid var(--auth-border);
    background: #fffdf8;
    font-size: 16px;
    width: 100%;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-box .form-control:focus {
    border-color: var(--auth-gold);
    box-shadow: 0 0 0 0.2rem rgba(249, 168, 38, 0.22);
    outline: none;
    background: #fff;
}

/* Primary (honey) button — overrides Bootstrap's blue on auth pages */
.auth-box .btn,
.auth-box .btn-primary {
    height: 50px;
    width: 100%;
    font-weight: 700;
    font-size: 16px;
    border-radius: 10px;
    border: none;
    color: var(--auth-ink);
    background: linear-gradient(135deg, var(--auth-gold) 0%, #FFC95C 100%);
    transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
    box-shadow: 0 6px 16px rgba(249, 168, 38, 0.35);
    cursor: pointer;
}

.auth-box .btn-primary:hover,
.auth-box .btn-primary:focus {
    filter: brightness(1.03);
    color: var(--auth-ink);
    box-shadow: 0 8px 22px rgba(224, 142, 18, 0.45);
    transform: translateY(-1px);
}

.auth-box .btn-primary:active { transform: translateY(0); }

/* Options row: remember me + forgot */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-options .form-check { margin: 0; }
.auth-options .form-check-label { color: var(--auth-muted); font-size: 14px; }

.forgot-link {
    color: var(--auth-amber);
    font-size: 14px;
    font-weight: 600;
}
.forgot-link:hover { color: var(--auth-gold-dark); }

.auth-footer {
    color: var(--auth-muted);
    font-size: 14.5px;
    text-align: center;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--auth-border);
}

.auth-footer a {
    color: var(--auth-amber);
    font-weight: 700;
}
.auth-footer a:hover { color: var(--auth-gold-dark); }

/* Alerts */
.auth-box .alert {
    padding: 13px 16px;
    margin-bottom: 22px;
    border-radius: 10px;
    border: none;
    font-size: 14.5px;
}
.auth-box .alert-danger  { background:#fdecea; color:#8a2318; border-left:4px solid #D84727; }
.auth-box .alert-success { background:#e9f6ec; color:#1c5b2b; border-left:4px solid #2E5339; }
.auth-box .alert-info    { background:#fff4d9; color:#6b4e0c; border-left:4px solid var(--auth-gold); }
.auth-box .alert ul { margin: 0; padding-left: 18px; }

/* Password field + show/hide toggle */
.password-wrapper { position: relative; }
.password-wrapper .form-control { padding-right: 46px; }

.password-toggle {
    position: absolute;
    right: 14px;
    top: 25px;
    transform: translateY(-50%);
    color: #b8a37e;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    transition: color .2s ease;
}
.password-toggle:hover { color: var(--auth-amber); }

/* 2FA */
.auth-code-group { display:flex; gap:10px; justify-content:center; margin:20px 0; }
.auth-code-input {
    width:52px; height:60px; font-size:24px; text-align:center;
    border-radius:10px; border:2px solid var(--auth-border);
}
.auth-code-input:focus { border-color:var(--auth-gold); box-shadow:0 0 0 .2rem rgba(249,168,38,.22); outline:none; }

@media (max-width: 576px) {
    .auth-section { padding: 36px 0; }
    .auth-box { padding: 32px 22px 28px; border-radius: 14px; }
    .auth-header h1, .auth-header h2 { font-size: 24px; }
}
