/* ============================================================
   auth.css — Standalone authentication pages
   Used by: templates/users/login.html, set_password.html,
            password_reset.html, password_reset_request.html,
            invitation_accept.html,
            templates/platform/admin_invitation_accept.html
   Most auth pages only had a :root <style> block that interpolated
   Django template variables — those :root blocks MUST stay inline
   in the template (they cannot be statically extracted). This file
   captures the substantive .accept-* classes used by the two
   invitation-accept templates.
   ============================================================ */

body.auth-body { background: #f3f4f6; }

.accept-card {
    max-width: 520px;
    margin: 48px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    overflow: hidden;
}

.accept-banner {
    background: var(--color-primary);
    color: #fff;
    padding: 24px 28px;
    text-align: center;
}

.accept-banner h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.accept-banner p {
    margin: 6px 0 0;
    font-size: 0.88rem;
    opacity: .9;
}

.accept-body { padding: 28px; }

.accept-body label {
    font-size: .85rem;
    font-weight: 500;
    color: #374151;
}

.accept-body .form-control {
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.accept-body .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-shadow);
}

.accept-submit {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 500;
    width: 100%;
    transition: background .15s ease;
}

.accept-submit:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

.accept-readonly {
    background: #f9fafb !important;
    color: #6b7280;
}

/* ============================================================
   Login page — split-screen: brand hero (left) + login (right)
   ============================================================ */
body.login-body {
    margin: 0;
    min-height: 100vh;
    background: #fafbfc;
}

.login-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ---- Left: brand hero panel ---- */
.login-hero {
    position: relative;
    overflow: hidden;
    background: var(--color-primary-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 56px;
}

.login-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.login-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg,
            var(--color-primary) 0%,
            var(--color-primary-dark) 100%);
    opacity: 0.55;
    z-index: 1;
    pointer-events: none;
}

.login-hero-content {
    position: relative;
    z-index: 2;
    max-width: 440px;
}

.login-hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.login-hero-brand::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
}

.login-hero-headline {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    color: #fff;
}

.login-hero-subline {
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.login-hero-attribution {
    position: absolute;
    left: 56px;
    bottom: 32px;
    z-index: 2;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

/* ---- Right: login panel + footer ---- */
.login-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    min-height: 100vh;
}

.login-panel-pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.login-panel-main {
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
}

.login-card-wrap {
    width: 100%;
    max-width: 460px;
}

.login-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.login-card-body {
    padding: 36px 36px 32px;
}

.login-logo {
    max-width: 180px;
    height: auto;
}

/* Links inside the card (e.g. "Passwort vergessen?") */
.login-card a {
    color: var(--color-primary);
    transition: color 0.15s ease;
}

.login-card a:hover,
.login-card a:focus {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Form labels: slightly softer than pure black for hierarchy */
.login-card label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
}

/* Inputs: rounder corners + primary-color focus ring */
.login-card .form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px 14px;
    height: auto;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-card .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-shadow);
    outline: none;
}

/* Anmelden button: branded hover/active states */
.login-card .btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    border-radius: 8px;
    padding: 11px 16px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-card .btn-primary:hover,
.login-card .btn-primary:focus {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    box-shadow: 0 4px 12px var(--color-primary-shadow);
}

.login-card .btn-primary:active,
.login-card .btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

/* Footer: part of the gradient, just a hairline divider on top */
.login-footer {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    padding: 20px 32px;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.login-footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
}

.login-footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.15s ease;
}

.login-footer-links a:hover,
.login-footer-links a:focus {
    color: #fff;
    text-decoration: none;
}

.login-footer-copy {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
    white-space: nowrap;
}

/* ---- Responsive: hide hero on narrow screens ---- */
@media (max-width: 991px) {
    .login-shell {
        grid-template-columns: 1fr;
    }
    .login-hero {
        display: none;
    }
    .login-panel {
        min-height: 100vh;
    }
}

@media (max-width: 575px) {
    .login-panel-main {
        padding: 32px 16px;
    }
    .login-footer {
        padding: 16px 20px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .login-footer-links {
        gap: 16px;
    }
}

