/* =========================================================
   Thalmanntools – Modern Login (V1)
   Look angelehnt an alternativeMonthView + Markenfarben
   Brand: Blau #457afa · Violett #5817ec · Dunkel #25113b
   ========================================================= */

:root {
    --tt-blue: #457afa;
    --tt-violet: #5817ec;
    --tt-dark: #25113b;
    --tt-grad: linear-gradient(135deg, #5817ec 0%, #457afa 100%);
    --tt-grad-soft: linear-gradient(135deg, #f6f4ff 0%, #eef3ff 100%);
    --tt-text: #1e293b;
    --tt-text-muted: #64748b;
    --tt-border: #e2e8f0;
    --tt-white: #ffffff;
    --tt-shadow: 0 20px 60px rgba(37, 17, 59, 0.18);
    --tt-radius: 18px;
}

* {
    box-sizing: border-box;
}

.tt-login-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Muli', 'Titillium Web', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--tt-text);
    background: #eef1f8;
    background-image:
        radial-gradient(1200px 600px at 100% -10%, rgba(88, 23, 236, 0.10), transparent 60%),
        radial-gradient(1000px 500px at -10% 110%, rgba(69, 122, 250, 0.10), transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.tt-login-shell {
    width: 100%;
    max-width: 980px;
    background: var(--tt-white);
    border-radius: var(--tt-radius);
    box-shadow: var(--tt-shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Info-Variante (z. B. E-Mail bestätigen) – etwas schmaler */
.tt-info-shell {
    width: 100%;
    max-width: 880px;
    background: var(--tt-white);
    border-radius: var(--tt-radius);
    box-shadow: var(--tt-shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* =========================================
   LEFT – Brand Panel
   ========================================= */
.tt-brand {
    position: relative;
    padding: 44px 40px;
    color: #fff;
    background: var(--tt-grad);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

    .tt-brand::after {
        content: "";
        position: absolute;
        right: -80px;
        bottom: -80px;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
    }

    .tt-brand::before {
        content: "";
        position: absolute;
        left: -60px;
        top: -60px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
    }

.tt-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

    .tt-brand-logo img {
        height: 60px;
        width: auto;
        background: #fff;
        padding: 7px 10px;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    }

    .tt-brand-logo span {
        font-weight: 700;
        font-size: 18px;
        letter-spacing: 0.2px;
    }

.tt-brand-copy {
    z-index: 1;
}

    .tt-brand-copy h1 {
        font-size: 30px;
        line-height: 1.18;
        margin: 0 0 14px;
        font-weight: 800;
    }

    .tt-brand-copy p {
        margin: 0;
        font-size: 15px;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.9);
    }

.tt-brand-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 1;
}

.tt-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

/* =========================================
   RIGHT – Auth Card
   ========================================= */
.tt-auth {
    padding: 44px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tt-auth-head {
    margin-bottom: 22px;
}

    .tt-auth-head h2 {
        margin: 0 0 6px;
        font-size: 24px;
        font-weight: 800;
        color: var(--tt-dark);
    }

    .tt-auth-head p {
        margin: 0;
        color: var(--tt-text-muted);
        font-size: 14px;
    }

/* =========================================
   Info-Panel (E-Mail bestätigen o. ä.)
   ========================================= */
.tt-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin-bottom: 20px;
    border-radius: 18px;
    font-size: 28px;
    color: var(--tt-violet);
    background: rgba(88, 23, 236, 0.10);
}

.tt-mail-callout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--tt-grad-soft);
    border: 1.5px solid var(--tt-border);
    font-size: 15px;
    color: var(--tt-dark);
    word-break: break-all;
}

    .tt-mail-callout .fa {
        color: var(--tt-violet);
        font-size: 16px;
    }

    .tt-mail-callout strong {
        font-weight: 700;
    }

.tt-info-text {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--tt-text-muted);
}

.tt-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

    .tt-alert .fa {
        margin-top: 2px;
        font-size: 15px;
    }

.tt-alert-success {
    background: #e9f8ef;
    border: 1.5px solid #b7e4c7;
    color: #1b6b3a;
}

.tt-alert-error {
    background: #fdecec;
    border: 1.5px solid #f5c2c2;
    color: #a12626;
}

.tt-field {
    margin-bottom: 16px;
}

    .tt-field label {
        display: block;
        font-size: 12.5px;
        font-weight: 700;
        color: var(--tt-text-muted);
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

.tt-input-wrap {
    position: relative;
}

    .tt-input-wrap .tt-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #9aa4b2;
        font-size: 15px;
        pointer-events: none;
    }

    .tt-input-wrap input {
        width: 100%;
        height: 48px;
        padding: 0 14px 0 42px;
        font-size: 15px;
        color: var(--tt-text);
        background: #f8fafc;
        border: 1.5px solid var(--tt-border);
        border-radius: 12px;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

        .tt-input-wrap input:focus {
            outline: none;
            background: #fff;
            border-color: var(--tt-violet);
            box-shadow: 0 0 0 4px rgba(88, 23, 236, 0.12);
        }

        .tt-input-wrap input::placeholder {
            color: #aeb6c2;
        }

    /* Select-Felder identisch zu Text-Inputs stylen (inkl. Custom-Pfeil) */
    .tt-input-wrap select {
        width: 100%;
        height: 48px;
        padding: 0 40px 0 42px;
        font-size: 15px;
        color: var(--tt-text);
        background-color: #f8fafc;
        border: 1.5px solid var(--tt-border);
        border-radius: 12px;
        cursor: pointer;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
        background-repeat: no-repeat;
        background-position: right 14px center;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
        text-overflow: ellipsis;
    }

        .tt-input-wrap select:focus {
            outline: none;
            background-color: #fff;
            border-color: var(--tt-violet);
            box-shadow: 0 0 0 4px rgba(88, 23, 236, 0.12);
        }

/* =========================================
   Auswahl-Karten (Radio) – z. B. "Wie arbeitest du?"
   ========================================= */
.tt-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

    .tt-choice input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .tt-choice .tt-choice-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        height: 100%;
        margin-bottom: 0;
        padding: 18px 18px 18px 18px;
        position: relative;
        background: #f8fafc;
        border: 1.5px solid var(--tt-border);
        border-radius: 14px;
        cursor: pointer;
        text-transform: none;
        letter-spacing: normal;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.12s ease;
    }

        .tt-choice .tt-choice-card:hover {
            border-color: #c7b6f7;
            background: #fff;
            transform: translateY(-1px);
        }

        /* Radio-Indikator (leerer Kreis, oben rechts) */
        .tt-choice .tt-choice-card::after {
            content: "";
            position: absolute;
            right: 16px;
            top: 16px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            border: 2px solid #c3ccd8;
            background: #fff;
            transition: border-color 0.18s ease, box-shadow 0.18s ease;
        }

    /* Ausgewählter Zustand */
    .tt-choice input[type="radio"]:checked + .tt-choice-card {
        border-color: var(--tt-violet);
        background: var(--tt-grad-soft);
        box-shadow: 0 0 0 4px rgba(88, 23, 236, 0.10);
    }

        .tt-choice input[type="radio"]:checked + .tt-choice-card::after {
            border-color: var(--tt-violet);
            box-shadow: inset 0 0 0 4px var(--tt-violet);
        }

    .tt-choice input[type="radio"]:focus-visible + .tt-choice-card {
        border-color: var(--tt-violet);
        box-shadow: 0 0 0 4px rgba(88, 23, 236, 0.18);
    }

    /* Icon als farbiges Badge */
    .tt-choice .tt-choice-ico {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: rgba(88, 23, 236, 0.10);
        color: var(--tt-violet);
        font-size: 19px;
        margin-bottom: 2px;
        transition: background 0.18s ease, color 0.18s ease;
    }

    .tt-choice input[type="radio"]:checked + .tt-choice-card .tt-choice-ico {
        background: var(--tt-grad);
        color: #fff;
    }

    .tt-choice .tt-choice-title {
        display: block;
        margin: 0;
        font-size: 15px;
        font-weight: 700;
        color: var(--tt-dark);
        line-height: 1.25;
        text-transform: none;
        letter-spacing: normal;
    }

    .tt-choice .tt-choice-desc {
        display: block;
        margin: 0;
        font-size: 12.5px;
        font-weight: 400;
        color: var(--tt-text-muted);
        line-height: 1.4;
        text-transform: none;
        letter-spacing: normal;
    }

.tt-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 18px;
}

.tt-link {
    color: var(--tt-violet);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

    .tt-link:hover {
        text-decoration: underline;
    }

.tt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    text-decoration: none;
}

.tt-btn-primary {
    color: #fff;
    background: var(--tt-grad);
    box-shadow: 0 10px 24px rgba(88, 23, 236, 0.28);
}

    .tt-btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 30px rgba(88, 23, 236, 0.34);
        color: #fff;
    }

    /* Ladezustand: kein Hover-Lift, Cursor + Deckkraft anpassen */
    .tt-btn.is-loading,
    .tt-btn:disabled {
        cursor: progress;
        opacity: 0.9;
        transform: none;
        box-shadow: 0 8px 20px rgba(88, 23, 236, 0.22);
    }

    .tt-btn .ob-submit-label {
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

/* Inline-Spinner im Button */
.ob-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ob-spin 0.7s linear infinite;
    flex: 0 0 auto;
}

@keyframes ob-spin {
    to {
        transform: rotate(360deg);
    }
}

.tt-btn-ghost {
    color: var(--tt-violet);
    background: #fff;
    border: 1.5px solid var(--tt-border);
}

    .tt-btn-ghost:hover {
        border-color: var(--tt-violet);
        background: #faf9ff;
        color: var(--tt-violet);
    }

.tt-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: #a3adba;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

    .tt-divider::before,
    .tt-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--tt-border);
    }

.tt-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

    .tt-error:empty {
        display: none;
    }

/* =========================================
   Forgot Password Panel (toggle)
   ========================================= */
.tt-panel {
    display: none;
}

    .tt-panel.is-active {
        display: block;
        animation: tt-fade 0.25s ease;
    }

@keyframes tt-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tt-hint {
    color: var(--tt-text-muted);
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 16px;
}

/* =========================================
   Testaccount CTA + Branch Teaser
   ========================================= */
.tt-trial {
    margin-top: 4px;
    padding: 16px;
    border-radius: 14px;
    background: var(--tt-grad-soft);
    border: 1px solid #e6e2fb;
}

    .tt-trial h3 {
        margin: 0 0 4px;
        font-size: 15px;
        font-weight: 800;
        color: var(--tt-dark);
    }

    .tt-trial p {
        margin: 0 0 12px;
        font-size: 13px;
        color: var(--tt-text-muted);
    }

.tt-branches {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

    .tt-branches.is-active {
        display: grid;
        animation: tt-fade 0.25s ease;
    }

.tt-branch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--tt-border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tt-text);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

    .tt-branch:hover {
        border-color: var(--tt-violet);
        transform: translateY(-1px);
    }

    .tt-branch .tt-branch-ico {
        font-size: 18px;
        line-height: 1;
    }

    .tt-branch small {
        display: block;
        font-weight: 500;
        color: var(--tt-text-muted);
        font-size: 11px;
    }

.tt-soon {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--tt-violet);
    background: #efeaff;
    padding: 3px 9px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
}

/* =========================================
   Footer
   ========================================= */
.tt-login-footer {
    text-align: center;
    color: #8b93a1;
    font-size: 12px;
    margin-top: 18px;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 820px) {
    .tt-login-shell {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .tt-info-shell {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .tt-brand {
        padding: 32px 30px;
        gap: 22px;
    }

        .tt-brand-copy h1 {
            font-size: 24px;
        }

    .tt-auth {
        padding: 32px 28px;
    }
}

@media (max-width: 480px) {
    .tt-login-body {
        padding: 12px;
    }

    .tt-branches {
        grid-template-columns: 1fr;
    }

    .tt-choice {
        grid-template-columns: 1fr;
    }
}
