/* HBS Garage 2026 · Authentifizierung */

.auth-page {
    padding: clamp(.4rem, 2vw, 1rem) 0 2rem;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
    min-height: 650px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 26px;
    background: var(--color-surface);
    box-shadow: 0 14px 42px rgba(31, 48, 35, .07);
}

.auth-card {
    display: grid;
    align-items: center;
    padding: clamp(1.4rem, 4vw, 3.25rem);
    background: var(--color-surface);
}

.auth-card-inner {
    width: min(100%, 500px);
    margin-inline: auto;
}

.auth-heading { margin-bottom: 1.45rem; }

.auth-heading h1 {
    margin: .3rem 0 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.auth-heading p {
    max-width: 460px;
    margin: .7rem 0 0;
    color: var(--color-text-muted);
    font-size: .82rem;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: .9rem;
}

.auth-field {
    display: grid;
    gap: .38rem;
}

.auth-field > label:not(.auth-check) {
    color: var(--color-text);
    font-size: .7rem;
    font-weight: 800;
}

.auth-input {
    width: 100%;
    min-height: 49px;
    border-radius: 12px !important;
}

.auth-input:focus {
    outline: none;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(72, 105, 73, .12);
}

.auth-code-input {
    max-width: 230px;
    font-size: 1.1rem !important;
    font-weight: 850;
    letter-spacing: .22em;
    text-align: center;
}

.auth-field-check { margin: .1rem 0; }

.auth-check {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: .6rem;
    align-items: start;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: .7rem;
    line-height: 1.5;
}

.auth-check input {
    width: 17px;
    height: 17px;
    margin: .08rem 0 0;
    accent-color: var(--color-primary);
}

.auth-check a {
    color: var(--color-primary-dark);
    font-weight: 800;
    text-underline-offset: 2px;
}

.auth-field-help {
    margin-left: 1.65rem;
    color: var(--color-text-muted);
    font-size: .61rem;
    line-height: 1.45;
}

.auth-error {
    display: block;
    color: #a13c3c;
    font-size: .65rem;
    font-weight: 700;
}

.auth-submit {
    width: 100%;
    min-height: 50px;
    margin-top: .25rem;
    justify-content: center;
    border-radius: 12px;
    font-weight: 850;
}

.auth-secondary-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .55rem;
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-size: .65rem;
}

.auth-secondary-links a,
.auth-account-switch a {
    color: var(--color-primary-dark);
    font-weight: 800;
}

.auth-secondary-links span { opacity: .45; }

.auth-account-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .4rem 1rem;
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: .7rem;
}

.auth-account-switch a { text-decoration: none; }

.auth-account-switch a:hover,
.auth-secondary-links a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-story {
    position: relative;
    isolation: isolate;
    display: grid;
    overflow: hidden;
    padding: clamp(1.6rem, 4vw, 3.2rem);
    background:
        radial-gradient(circle at 78% 18%, rgba(255,255,255,.22), transparent 22%),
        radial-gradient(circle at 12% 86%, rgba(255,239,190,.22), transparent 28%),
        linear-gradient(145deg, #486a4b 0%, #31533a 58%, #27452f 100%);
    color: #fff;
}

.auth-story::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -70px;
    bottom: -90px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
}

.auth-story-decoration {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
}

.auth-story-decoration-one {
    top: 14%;
    right: -55px;
    width: 170px;
    height: 170px;
}

.auth-story-decoration-two {
    bottom: 22%;
    left: -45px;
    width: 105px;
    height: 105px;
}

.auth-story-content {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.auth-story-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .48rem .65rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    font-size: .68rem;
    font-weight: 850;
    backdrop-filter: blur(8px);
}

.auth-story-badge > span {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
}

.auth-story-copy {
    margin: auto 0;
    padding: 2rem 0;
}

.auth-story .eyebrow { color: #dce9d8; }

.auth-story-copy h2 {
    max-width: 560px;
    margin: .35rem 0 0;
    color: #fff;
    font-size: clamp(2.7rem, 6vw, 5.2rem);
    line-height: .92;
    letter-spacing: -.06em;
}

.auth-story-copy p {
    max-width: 560px;
    margin: 1.15rem 0 0;
    color: rgba(255,255,255,.78);
    font-size: .83rem;
    line-height: 1.65;
}

.auth-story-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .65rem;
}

.auth-story-item {
    display: grid;
    gap: .45rem;
    min-width: 0;
    padding: .8rem;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
}

.auth-story-item span { font-size: 1.25rem; }

.auth-story-item strong {
    color: rgba(255,255,255,.9);
    font-size: .65rem;
}

.auth-story-promise {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: .6rem;
    align-items: center;
    margin-top: .75rem;
    padding: .7rem .8rem;
    border-radius: 13px;
    background: rgba(15,38,23,.2);
}

.auth-story-promise > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dcebd6;
    color: #31533a;
    font-size: .7rem;
    font-weight: 900;
}

.auth-story-promise p {
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: .66rem;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .auth-story {
        min-height: 360px;
        order: -1;
    }

    .auth-story-copy {
        margin: 1.8rem 0;
        padding: 0;
    }

    .auth-story-copy h2 {
        font-size: clamp(2.7rem, 9vw, 4.4rem);
    }

    .auth-card {
        padding: 2rem clamp(1.2rem, 5vw, 2.5rem);
    }
}

@media (max-width: 600px) {
    .auth-page { padding-top: 0; }
    .auth-shell { border-radius: 20px; }

    .auth-story {
        min-height: auto;
        padding: 1.25rem;
    }

    .auth-story-copy {
        margin: 1.5rem 0 1.2rem;
    }

    .auth-story-copy h2 { font-size: 2.75rem; }
    .auth-story-copy p { font-size: .75rem; }

    .auth-story-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .4rem;
    }

    .auth-story-item { padding: .6rem; }
    .auth-story-promise { display: none; }

    .auth-card {
        padding: 1.4rem 1.1rem 1.6rem;
    }

    .auth-heading h1 { font-size: 2rem; }

    .auth-secondary-links,
    .auth-account-switch {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-secondary-links > span { display: none; }
    .auth-code-input { max-width: 100%; }
}

/* =========================================================
   Datenschutz-Zustimmung
   ========================================================= */

.privacy-accept-shell {
    min-height: 620px;
}

.privacy-version-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .7rem;
    align-items: center;

    margin-bottom: 1rem;
    padding: .8rem;

    border: 1px solid var(--color-border);
    border-radius: 13px;

    background: var(--color-surface-muted);
}

.privacy-version-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: var(--color-primary-light);

    font-size: 1rem;
}

.privacy-version-card small,
.privacy-version-card strong {
    display: block;
}

.privacy-version-card small {
    color: var(--color-text-muted);
    font-size: .62rem;
}

.privacy-version-card strong {
    margin-top: .1rem;

    color: var(--color-primary-dark);

    font-size: .82rem;
}

.privacy-information {
    margin-bottom: 1rem;
    padding: 1rem;

    border: 1px solid var(--color-border);
    border-radius: 14px;

    background: #fff;
}

.privacy-information h2 {
    margin: 0;

    font-size: .95rem;
}

.privacy-information p {
    margin: .35rem 0 .8rem;

    color: var(--color-text-muted);

    font-size: .74rem;
    line-height: 1.5;
}

.privacy-document-link {
    min-height: 42px;

    display: flex;
    align-items: center;
    gap: .45rem;

    padding: .6rem .7rem;

    border: 1px solid var(--color-border);
    border-radius: 10px;

    color: var(--color-primary-dark);

    font-size: .72rem;
    font-weight: 800;
    text-decoration: none;
}

.privacy-document-link:hover {
    border-color: var(--color-primary);

    background: var(--color-primary-light);
}

.privacy-information > small {
    display: block;

    margin-top: .4rem;

    color: var(--color-text-muted);

    font-size: .6rem;
}

.privacy-confirmation-form {
    display: grid;
    gap: 1rem;

    margin-top: 1rem;
}

.privacy-confirmation-check {
    padding: .85rem;

    border: 1px solid var(--color-border);
    border-radius: 13px;

    background: var(--color-surface-muted);
}

.privacy-confirmation-actions {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: .6rem;
}

.privacy-confirm-button {
    justify-content: center;
}

.privacy-story-points {
    display: grid;
    gap: .6rem;
}

.privacy-story-points article {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: .65rem;
    align-items: center;

    padding: .7rem;

    border: 1px solid rgba(255,255,255,.14);
    border-radius: 13px;

    background: rgba(255,255,255,.08);
}

.privacy-story-points article > span {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background: rgba(255,255,255,.1);
}

.privacy-story-points strong,
.privacy-story-points small {
    display: block;
}

.privacy-story-points strong {
    color: #fff;

    font-size: .7rem;
}

.privacy-story-points small {
    margin-top: .12rem;

    color: rgba(255,255,255,.7);

    font-size: .62rem;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .privacy-confirmation-actions {
        grid-template-columns: 1fr;
    }

    .privacy-confirmation-actions .btn {
        width: 100%;
    }
}