/*
 * TimeSpy – auth
 * Teil der aufgeteilten timespy.css (siehe base.css für Variablen).
 * Reihenfolge der <link>-Tags in layout.php/login.php ist wichtig
 * und entspricht exakt der ursprünglichen Reihenfolge in dieser Datei.
 */

/* =========================================================
   AUTH
   ========================================================= */

.auth-body {
    min-height: 100vh;
    overflow: hidden;
}

.auth-shell {
    min-height: 100vh;

    display: grid;
    grid-template-columns:
        minmax(420px, 520px)
        1fr;
}

.auth-panel {
    position: relative;
    z-index: 5;

    display: flex;
    flex-direction: column;

    justify-content: center;

    padding:
        48px
        clamp(28px, 5vw, 72px);

    background:
        rgba(250, 250, 252, .78);

    backdrop-filter:
        blur(30px)
        saturate(160%);

    -webkit-backdrop-filter:
        blur(30px)
        saturate(160%);

    border-right:
        1px solid var(--border);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 34px;
}

.auth-card {
    padding: 30px;

    border-radius: var(--radius-xl);

    box-shadow:
        0 24px 70px rgba(0,0,0,.08);
}

.auth-card-header h1 {
    margin:
        6px
        0
        10px;

    font-size:
        clamp(2rem, 4vw, 2.7rem);

    line-height: 1;

    font-weight: 650;

    letter-spacing: -.055em;
}

.auth-card-header p {
    margin: 0;

    color: var(--text-secondary);

    line-height: 1.6;

    font-size: .92rem;
}

.auth-form {
    display: flex;
    flex-direction: column;

    gap: 18px;

    margin-top: 28px;
}

.auth-submit {
    width: 100%;

    min-height: 48px;

    margin-top: 2px;
}

.auth-error {
    margin-top: 20px;

    padding: 12px 14px;

    color: #b91c1c;

    background:
        rgba(239,68,68,.08);

    border:
        1px solid
        rgba(239,68,68,.16);

    border-radius: 12px;

    font-size: .82rem;
}

.auth-success {
    margin-top: 20px;

    padding: 12px 14px;

    color: var(--accent);

    background: var(--accent-soft);

    border: 1px solid transparent;

    border-radius: 12px;

    font-size: .82rem;
}

.auth-footer--inline {
    margin-top: 16px;
}

.auth-footer {
    margin-top: 24px;

    color: var(--text-muted);

    font-size: .72rem;
}

/* =========================================================
   LOGIN VISUAL
   ========================================================= */

.auth-visual {
    position: relative;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px;

    background:
        linear-gradient(
            135deg,
            #eaf1ff 0%,
            #f7f4ff 45%,
            #edf7ff 100%
        );
}

.auth-visual::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.35) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.35) 1px,
            transparent 1px
        );

    background-size:
        42px 42px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.75),
            transparent
        );

    opacity: .45;
}

.auth-orb {
    position: absolute;

    border-radius: 999px;

    filter: blur(12px);

    opacity: .65;
}

.auth-orb-one {
    width: 380px;
    height: 380px;

    top: 10%;
    right: 8%;

    background:
        radial-gradient(
            circle,
            rgba(59,130,246,.35),
            rgba(59,130,246,0)
        );
}

.auth-orb-two {
    width: 420px;
    height: 420px;

    bottom: 0;
    left: 10%;

    background:
        radial-gradient(
            circle,
            rgba(124,58,237,.25),
            rgba(124,58,237,0)
        );
}

.auth-preview {
    position: relative;
    z-index: 3;

    width: min(620px, 92%);

    padding: 32px;

    border-radius: 30px;

    box-shadow:
        0 30px 90px
        rgba(30,64,175,.14);
}

.preview-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;

    color: var(--text-secondary);

    font-size: .8rem;
}

.preview-time {
    margin-top: 30px;

    font-size:
        clamp(4rem, 9vw, 7rem);

    font-weight: 300;

    letter-spacing: -.07em;
}

.preview-subline {
    margin-top: -6px;

    color: var(--text-muted);

    font-size: .8rem;
}

.preview-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    margin-top: 34px;
}

.preview-stat {
    padding: 16px;

    background:
        rgba(255,255,255,.62);

    border:
        1px solid var(--border);

    border-radius: 16px;
}

.preview-stat span {
    display: block;

    color: var(--text-muted);

    font-size: .7rem;
}

.preview-stat strong {
    display: block;

    margin-top: 8px;

    font-size: 1.05rem;

    letter-spacing: -.025em;
}

/* =========================================================
   AUTH RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {

    .auth-shell {
        display: block;
    }

    .auth-panel {
        min-height: 100vh;

        border-right: none;
    }

    .auth-visual {
        display: none;
    }

    .auth-card {
        max-width: 520px;
    }
}


