/* =========================================================
   Davila Corporation — auth.css (dark card theme)
   Matches Davila Accounting login style exactly.
   ========================================================= */
.layout-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.auth-bg {
    position: fixed;
    inset: 0;
    background: #0D1B2A;
    z-index: 0;
}
.auth-bg__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(46,109,164,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46,109,164,.08) 1px, transparent 1px);
    background-size: 40px 40px;
}
.auth-bg__glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46,109,164,.15) 0%, transparent 70%);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}
.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}
/* ── Dark card matching accounting ───────────────────────── */
.auth-card {
    background: #1B2E40;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 24px 64px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.2);
}
.auth-brand { text-align: center; margin-bottom: 28px; }
.auth-brand__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1D9E75, #16a34a);
    color: #fff;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-weight: 900;
}
.auth-brand__name {
    display: block;
    font-size: 1.375rem;
    font-weight: 800;
    color: #F1F5F9;
    letter-spacing: -.02em;
    line-height: 1.2;
}
.auth-brand__tagline {
    display: block;
    font-size: .8125rem;
    color: rgba(255,255,255,.45);
    margin-top: 4px;
    font-weight: 500;
}
.auth-card__heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: #F1F5F9;
    margin-bottom: 4px;
    text-align: center;
}
.auth-card__subheading {
    font-size: .8125rem;
    color: rgba(255,255,255,.45);
    text-align: center;
    margin-bottom: 24px;
}
/* ── Form ────────────────────────────────────────────────── */
.auth-form__group { margin-bottom: 16px; }
.auth-form__label {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.auth-form__input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.05);
    color: #F1F5F9;
    font-size: .9375rem;
    font-family: inherit;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    outline: none;
    box-sizing: border-box;
}
.auth-form__input:focus {
    border-color: #2E6DA4;
    background: rgba(255,255,255,.08);
    box-shadow: 0 0 0 3px rgba(46,109,164,.2);
}
.auth-form__input::placeholder { color: rgba(255,255,255,.25); }
.auth-form__btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #1D9E75;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 150ms ease, transform 150ms ease;
    font-family: inherit;
    margin-top: 4px;
    letter-spacing: -.01em;
}
.auth-form__btn:hover { background: #188964; transform: translateY(-1px); }
.auth-form__btn:active { transform: translateY(0); }
/* ── Alerts ──────────────────────────────────────────────── */
.auth-alert {
    padding: 11px 14px;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.auth-alert--error   { background: rgba(220,38,38,.15);  color: #F87171; border-color: rgba(220,38,38,.3); }
.auth-alert--success { background: rgba(29,158,117,.15); color: #34D399; border-color: rgba(29,158,117,.3); }
/* ── Flash (booking uses this class) ────────────────────── */
.flash { padding: 11px 14px; border-radius: 10px; font-size: .875rem; font-weight: 500; margin-bottom: 18px; border: 1px solid transparent; }
.flash--error   { background: rgba(220,38,38,.15);  color: #F87171; border-color: rgba(220,38,38,.3); }
.flash--success { background: rgba(29,158,117,.15); color: #34D399; border-color: rgba(29,158,117,.3); }
/* ── Powered by ──────────────────────────────────────────── */
.auth-powered {
    text-align: center;
    margin-top: 20px;
    font-size: .75rem;
    color: rgba(255,255,255,.25);
    letter-spacing: .02em;
}
.auth-powered span { font-weight: 700; color: rgba(255,255,255,.5); }
/* ── Footer ──────────────────────────────────────────────── */
.auth-footer {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    text-align: center;
    font-size: .8125rem;
    color: rgba(255,255,255,.25);
}
.auth-footer a { color: rgba(255,255,255,.4); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { color: rgba(255,255,255,.7); }
/* ── Form elements for accounting ────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.form-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.05);
    color: #F1F5F9;
    font-size: .9375rem;
    font-family: inherit;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    outline: none;
    box-sizing: border-box;
}
.form-input:focus {
    border-color: #2E6DA4;
    background: rgba(255,255,255,.08);
    box-shadow: 0 0 0 3px rgba(46,109,164,.2);
}
.form-input::placeholder { color: rgba(255,255,255,.25); }
.form-group--inline { display: flex; align-items: center; margin-bottom: 20px; }
.form-checkbox { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: rgba(255,255,255,.5); cursor: pointer; }
.form-checkbox input { accent-color: #1D9E75; width: 16px; height: 16px; }
.btn--primary {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #1D9E75;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 150ms ease, transform 150ms ease;
    font-family: inherit;
    letter-spacing: -.01em;
}
.btn--primary:hover { background: #188964; transform: translateY(-1px); }
.btn--full { width: 100%; display: block; }

.auth-form__forgot {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: #1D9E75;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    opacity: .85;
    transition: opacity .2s;
}
.auth-form__forgot:hover { opacity: 1; text-decoration: underline; }