/* =========================================================
   Fotosortierer – Authentifizierung / Passwort-Reset
   Ergänzungen zum Hauptdesign
   ========================================================= */

/* Auf der Loginseite bewusst weglassen. */
.website-link,
.product-state {
    display: none !important;
}

.story-header {
    justify-content: flex-start !important;
}

.login-heading-clean {
    margin-top: 0 !important;
}

.password-field {
    margin-bottom: 18px !important;
}

.forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.forgot-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #49645d;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.forgot-link:hover {
    color: #1f3732;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.forgot-link:focus-visible,
.back-link:focus-visible,
.dialog-reset-link:focus-visible,
.primary-link-button:focus-visible {
    outline: 3px solid rgba(69, 101, 93, 0.24);
    outline-offset: 4px;
    border-radius: 8px;
}

.help-section {
    margin-top: 26px;
}

.help-section h3 {
    margin: 0 0 14px;
    color: #24302e;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.password-help-note-action {
    margin-top: 24px !important;
}

.password-help-note-action p {
    margin-bottom: 15px !important;
}

.dialog-reset-link {
    display: inline-flex;
    align-items: center;
    color: #29443e;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.dialog-reset-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* =========================================================
   Passwort-Reset Seiten
   ========================================================= */

.auth-flow-page {
    margin: 0;
    min-height: 100vh;
    background: #f4f2ec;
    color: #24302e;
}

.auth-flow-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
}

.auth-flow-story {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
    padding: 42px 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: #1d2c28;
}

.auth-flow-photo,
.auth-flow-shade {
    position: absolute;
    inset: 0;
}

.auth-flow-photo {
    z-index: -3;
    inset: -2%;
    background-image: url('/assets/img/hero-photo.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.035);
}

.auth-flow-shade {
    z-index: -2;
    background:
        linear-gradient(
            90deg,
            rgba(18, 31, 28, 0.94) 0%,
            rgba(18, 31, 28, 0.82) 48%,
            rgba(18, 31, 28, 0.58) 100%
        ),
        linear-gradient(
            180deg,
            rgba(12, 22, 20, 0.22),
            rgba(12, 22, 20, 0.68)
        );
}

.auth-flow-company {
    position: relative;
    z-index: 2;
    align-self: flex-start;
}

.auth-flow-story-copy {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin: auto 0;
    padding: 72px 0;
}

.auth-flow-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.auth-flow-story-copy h1 {
    max-width: 600px;
    margin: 0;
    color: #fff;
    font-size: clamp(46px, 5vw, 72px);
    line-height: 1.01;
    letter-spacing: -0.055em;
    font-weight: 720;
}

.auth-flow-story-copy p {
    max-width: 560px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.73);
    font-size: 18px;
    line-height: 1.7;
}

.auth-flow-main {
    min-height: 100vh;
    padding: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 80% 12%, rgba(117, 140, 126, 0.11), transparent 34%),
        #f4f2ec;
}

.auth-flow-card {
    width: min(100%, 510px) !important;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 28px;
    color: #66736f;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    color: #243a35;
}

.back-link-bottom {
    margin: 22px 0 0;
}

.success-box {
    margin: 0 0 24px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid rgba(54, 128, 90, 0.17);
    border-radius: 15px;
    color: #26573e;
    background: #eff8f2;
}

.success-box-large {
    margin-bottom: 28px;
}

.success-icon {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #3c8a61;
    font-size: 15px;
    font-weight: 900;
}

.success-box strong {
    display: block;
    margin: 1px 0 4px;
    color: #224c37;
    font-size: 15px;
}

.success-box p {
    margin: 0;
    color: #4d6a5a;
    font-size: 14px;
    line-height: 1.55;
}

.primary-link-button {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
}

.flow-hint {
    margin-top: 22px;
    padding: 14px 15px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border-radius: 14px;
    color: #6f7773;
    background: rgba(36, 48, 46, 0.045);
}

.flow-hint > span {
    flex: 0 0 auto;
    margin-top: 1px;
}

.flow-hint p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.auth-flow-card .field + .field {
    margin-top: 18px;
}

/* =========================================================
   Mobil
   ========================================================= */

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

    .auth-flow-story {
        min-height: 330px;
        padding: 26px 24px;
    }

    .auth-flow-story-copy {
        padding: 54px 0 18px;
    }

    .auth-flow-story-copy h1 {
        max-width: 560px;
        font-size: clamp(38px, 8vw, 54px);
    }

    .auth-flow-story-copy p {
        max-width: 600px;
        font-size: 16px;
    }

    .auth-flow-main {
        min-height: auto;
        padding: 28px 18px 40px;
    }
}

@media (max-width: 560px) {
    .forgot-row {
        justify-content: flex-start;
    }

    .auth-flow-story {
        min-height: 285px;
        padding: 22px 18px;
    }

    .auth-flow-story-copy {
        padding-top: 42px;
    }

    .auth-flow-story-copy h1 {
        font-size: 38px;
    }

    .auth-flow-story-copy p {
        font-size: 15px;
        line-height: 1.6;
    }

    .auth-flow-main {
        padding: 20px 14px 32px;
    }

    .back-link {
        margin-bottom: 22px;
    }
}
