/* =========================================================
   Login / Auth page styles
   ---------------------------------------------------------
   Customize the look & feel by overriding these CSS
   variables. You can change colors, the brand panel image,
   the gradient, corner radius, or shadow without touching
   any markup.
   ========================================================= */
:root {
    --auth-bg: #f4f6f9;
    --auth-card-bg: #ffffff;
    --auth-card-radius: 14px;
    --auth-card-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    --auth-text: #1f2937;
    --auth-muted: #6b7280;

    --auth-brand-color: #ffffff;
    --auth-brand-gradient: linear-gradient(135deg, #0f5132 0%, #198754 60%, #20c997 100%);
    --auth-brand-image: none; /* e.g. url('/images/login-bg.jpg') */

    --auth-primary: #198754;
    --auth-primary-hover: #157347;
    --auth-focus-ring: rgba(25, 135, 84, 0.25);

    --auth-input-radius: 10px;
    --auth-max-width: 980px;
}

html, body.auth-body {
    height: 100%;
}

body.auth-body {
    margin: 0;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: var(--auth-max-width);
    background: var(--auth-card-bg);
    border-radius: var(--auth-card-radius);
    box-shadow: var(--auth-card-shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

@media (max-width: 820px) {
    .auth-card {
        grid-template-columns: 1fr;
    }
}

/* ---------- Brand / hero panel ---------- */
.auth-brand {
    position: relative;
    color: var(--auth-brand-color);
    background: var(--auth-brand-gradient), var(--auth-brand-image);
    background-size: cover;
    background-position: center;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
}

@media (max-width: 820px) {
    .auth-brand {
        min-height: 200px;
        padding: 2rem 1.75rem;
    }
}

.auth-brand__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.2px;
}

.auth-brand__logo i {
    font-size: 1.7rem;
}

.auth-brand__headline {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.75rem 0;
}

.auth-brand__subhead {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 36ch;
    margin: 0;
}

.auth-brand__features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    display: grid;
    gap: 0.6rem;
}

.auth-brand__features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    opacity: 0.95;
}

.auth-brand__features i {
    font-size: 1.05rem;
}

.auth-brand__footer {
    font-size: 0.8rem;
    opacity: 0.75;
}

/* ---------- Form panel ---------- */
.auth-form {
    padding: 3rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 820px) {
    .auth-form {
        padding: 2rem 1.5rem;
    }
}

.auth-form__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.auth-form__subtitle {
    color: var(--auth-muted);
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
}

.auth-form .form-floating > .form-control {
    border-radius: var(--auth-input-radius);
}

.auth-form .form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 0.2rem var(--auth-focus-ring);
}

.auth-form .btn-auth {
    background-color: var(--auth-primary);
    border-color: var(--auth-primary);
    color: #fff;
    padding: 0.7rem 1rem;
    border-radius: var(--auth-input-radius);
    font-weight: 600;
    transition: background-color 120ms ease-in-out, transform 80ms ease-in-out;
}

.auth-form .btn-auth:hover,
.auth-form .btn-auth:focus {
    background-color: var(--auth-primary-hover);
    border-color: var(--auth-primary-hover);
    color: #fff;
}

.auth-form .btn-auth:active {
    transform: translateY(1px);
}

.auth-form__divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--auth-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 1.25rem 0;
}

.auth-form__divider::before,
.auth-form__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-form__links {
    margin-top: 1.25rem;
    font-size: 0.9rem;
}

.auth-form__links a {
    color: var(--auth-primary);
    text-decoration: none;
}

.auth-form__links a:hover {
    text-decoration: underline;
}

.auth-external {
    display: grid;
    gap: 0.5rem;
}

.auth-external .btn {
    border-radius: var(--auth-input-radius);
    font-weight: 500;
}
