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

.auth-page,
.start-city-page{
    width:100%;
    min-height:calc(100vh - var(--header-height) - var(--footer-height));

    padding:42px var(--page-padding);

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

    background:
        linear-gradient(
            180deg,
            rgba(4,10,18,.42) 0%,
            rgba(4,10,18,.62) 50%,
            rgba(4,10,18,.84) 100%
        ),
        url("/assets/backgrounds/kontaktBG.webp");

    background-position:center center;
    background-size:cover;
    background-repeat:no-repeat;
}


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

.auth-frame{
    position:relative;

    width:min(760px, 100%);
    margin:0 auto;

    padding:46px 54px 42px;

    background:
        radial-gradient(circle at top, rgba(96,165,250,.10), transparent 34%),
        linear-gradient(
            180deg,
            rgba(5,13,26,.92) 0%,
            rgba(3,10,20,.86) 100%
        );

    border:1px solid rgba(216,164,63,.72);
    border-radius:10px;

    box-shadow:
        0 28px 80px rgba(0,0,0,.48),
        inset 0 1px 0 rgba(255,255,255,.07),
        inset 0 0 55px rgba(96,165,250,.05);

    overflow:hidden;
}


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

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

    width:100%;
    max-width:520px;

    margin:0 auto;
}


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

.auth-heading{
    margin-bottom:28px;
    text-align:center;
}

.auth-symbol{
    margin-bottom:12px;

    color:#d8a43f;

    font-size:24px;
    line-height:1;
}

.auth-heading h1{
    margin:0 0 13px;

    color:#f4f0e8;

    font-family:Georgia, "Times New Roman", serif;
    font-size:28px;
    font-weight:400;
    line-height:1.15;
    letter-spacing:3px;
    text-transform:uppercase;
}


.start-city-page .headline-with-icons{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:22px;

    margin:0 0 13px;
}

.start-city-page .headline-with-icons h1{
    margin:0;

    color:#f4f0e8;

    font-family:Georgia, "Times New Roman", serif;
    font-size:28px;
    font-weight:400;
    line-height:1.15;
    letter-spacing:3px;
    text-transform:uppercase;
}

.start-city-page .headline-icon{
    width:30px;
    height:30px;

    flex:0 0 auto;

    object-fit:contain;
    display:block;

    transform:translateY(1px);
}


.auth-subline{
    margin-bottom:22px;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;
}

.auth-subline span{
    width:92px;
    height:1px;

    background:linear-gradient(
        90deg,
        transparent,
        rgba(216,164,63,.62),
        transparent
    );
}

.auth-subline strong{
    color:#d8a43f;

    font-family:Georgia, "Times New Roman", serif;
    font-size:13px;
    font-weight:700;
    letter-spacing:5px;
    text-transform:uppercase;
}

.auth-heading p{
    max-width:620px;
    margin:0 auto;

    color:#dfe7f2;

    font-size:17px;
    font-weight:400;
    line-height:1.65;
}


/* ==========================================
   MELDUNGEN
========================================== */

.auth-message{
    margin-bottom:18px;
    padding:13px 16px;

    border-radius:4px;

    font-size:14px;
    line-height:1.5;
    text-align:center;
}

.auth-message-error{
    color:#ffd7d7;

    background:rgba(92,24,24,.58);
    border:1px solid rgba(220,88,88,.46);
}

.auth-message-success{
    color:#d9ffe7;

    background:rgba(22,82,48,.58);
    border:1px solid rgba(92,210,132,.46);
}


/* ==========================================
   FORMULAR
========================================== */

.auth-form{
    display:grid;
    gap:15px;
}

.auth-field{
    display:grid;
    gap:7px;
}

.auth-field label,
.start-city-field label{
    color:rgba(216,164,63,.92);

    font-family:Georgia, "Times New Roman", serif;
    font-size:13px;
    font-weight:400;
    letter-spacing:2px;
    text-transform:uppercase;
}

.auth-field input,
.auth-field select,
.start-city-field select{
    width:100%;
    height:46px;

    padding:0 15px;

    color:#e8edf2;

    background:rgba(2,8,16,.58);
    border:1px solid rgba(232,237,242,.18);
    border-radius:4px;

    outline:none;

    font-size:15px;
    font-weight:400;

    box-shadow:
        inset 0 1px 3px rgba(0,0,0,.38),
        0 1px 0 rgba(255,255,255,.035);

    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.auth-field input::placeholder{
    color:rgba(232,237,242,.48);
}

.auth-field input:focus,
.auth-field select:focus,
.start-city-field select:focus{
    background:rgba(2,8,16,.72);
    border-color:rgba(216,164,63,.58);

    box-shadow:
        inset 0 1px 3px rgba(0,0,0,.38),
        0 0 0 2px rgba(216,164,63,.10),
        0 0 18px rgba(216,164,63,.12);
}

.auth-field select{
    cursor:pointer;
}

.auth-field option,
.start-city-field option{
    color:#101827;
    background:#f3ead2;
}


/* ==========================================
   BUTTON
========================================== */

.auth-actions{
    margin-top:8px;
}

.auth-submit,
.start-city-submit{
    width:100%;
    height:46px;

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

    color:#171006;

    background:
        linear-gradient(
            180deg,
            #f1c85e 0%,
            #d89f3f 100%
        );

    border:1px solid rgba(255,221,132,.62);
    border-radius:4px;

    font-family:"Segoe UI", Arial, sans-serif;
    font-size:15px;
    font-weight:400;
    letter-spacing:1.4px;
    line-height:1;
    text-transform:uppercase;

    cursor:pointer;

    box-shadow:
        0 12px 24px rgba(0,0,0,.34),
        inset 0 1px 0 rgba(255,255,255,.34);

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        background .16s ease,
        border-color .16s ease;
}

.auth-submit:hover,
.start-city-submit:hover{
    transform:translateY(-1px);

    background:
        linear-gradient(
            180deg,
            #ffdc7a 0%,
            #e3aa43 100%
        );

    border-color:rgba(255,235,165,.88);

    box-shadow:
        0 16px 30px rgba(0,0,0,.42),
        inset 0 1px 0 rgba(255,255,255,.40);
}

.auth-submit:active,
.start-city-submit:active{
    transform:translateY(0);

    box-shadow:
        0 8px 18px rgba(0,0,0,.32),
        inset 0 1px 4px rgba(0,0,0,.18);
}


/* ==========================================
   LINKS UNTEN
========================================== */

.auth-links{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    margin-top:6px;

    color:rgba(232,237,242,.68);
    font-size:14px;
}

.auth-links a{
    color:#d8a43f;

    font-weight:400;
    letter-spacing:.3px;

    transition:color .16s ease;
}

.auth-links a:hover{
    color:#f1c85e;
}


/* ==========================================
   REGISTER VARIANTE
========================================== */

.register-page .auth-frame{
    width:min(820px, calc(100% - 48px));
}

.register-page .auth-content{
    max-width:560px;
}

.register-frame{
    width:min(820px, 100%);
}

.register-content{
    max-width:560px;
}

.register-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
}


/* ==========================================
   SUCCESS SUMMARY
========================================== */

.auth-summary{
    width:100%;
    max-width:520px;

    margin:22px auto 26px;
    padding:16px 18px;

    background:rgba(3,12,22,.48);
    border:1px solid rgba(214,165,74,.32);
    border-radius:6px;
}

.auth-summary-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;

    padding:10px 0;

    border-bottom:1px solid rgba(255,255,255,.07);
}

.auth-summary-row:last-child{
    border-bottom:0;
}

.auth-summary-row span{
    color:var(--text-soft, rgba(232,237,242,.68));
    font-size:13px;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.auth-summary-row strong{
    color:var(--gold);
    font-weight:700;
    text-align:right;
}


/* ==========================================
   START CITY
========================================== */

.start-city-page .auth-frame{
    width:min(760px, calc(100% - 48px));
}

.start-city-page .auth-content{
    max-width:560px;
}

.start-city-note{
    margin:10px 0 4px;
    padding:15px 18px;

    color:#dfe7f2;

    background:rgba(2,8,16,.44);
    border:1px solid rgba(216,164,63,.26);
    border-radius:5px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.035),
        0 10px 24px rgba(0,0,0,.18);
}

.start-city-note strong{
    display:block;
    margin-bottom:7px;

    color:#d8a43f;

    font-family:Georgia, "Times New Roman", serif;
    font-size:13px;
    font-weight:700;
    letter-spacing:3px;
    text-transform:uppercase;
}

.start-city-note p{
    margin:0;

    color:#e4ebf5;

    font-size:15px;
    font-weight:400;
    line-height:1.58;
}

/* ==========================================
   START CITY PAGE
========================================== */

.start-city-frame{
    width:min(820px, calc(100% - 48px));
    margin:0 auto;
}

.start-city-form{
    width:100%;
    max-width:560px;
    margin:30px auto 0;

    display:grid;
    gap:22px;
}

.start-city-field{
    display:grid;
    gap:8px;
}

.start-city-info-box{
    padding:18px 20px;

    background:rgba(3,12,22,.48);
    border:1px solid rgba(214,165,74,.32);
    border-radius:6px;
}

.start-city-info-box h2{
    margin:0 0 10px;

    color:#d8a43f;

    font-family:Georgia, "Times New Roman", serif;
    font-size:15px;
    font-weight:700;
    letter-spacing:3px;
    text-transform:uppercase;
}

.start-city-info-box p{
    margin:0 0 14px;

    color:#e4ebf5;
    font-size:15px;
    font-weight:400;
    line-height:1.6;
}

.start-city-info-box ul{
    margin:0;
    padding-left:18px;

    color:#dfe7f2;
    font-size:14px;
    line-height:1.7;
}

.start-city-actions{
    margin-top:2px;
}

/* ==========================================
   START CITY CUSTOM DROPDOWN
========================================== */

.start-city-picker{
    position:relative;
}

.start-city-trigger{
    width:100%;
    height:46px;

    padding:0 14px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;

    color:#e8edf2;
    background:rgba(2,8,16,.66);

    border:1px solid rgba(216,164,63,.55);
    border-radius:4px;

    font-size:15px;
    font-weight:400;
    text-align:left;

    cursor:pointer;

    box-shadow:
        inset 0 1px 3px rgba(0,0,0,.40),
        0 1px 0 rgba(255,255,255,.035);

    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.start-city-trigger:hover,
.start-city-picker.is-open .start-city-trigger{
    background:rgba(2,8,16,.78);
    border-color:rgba(241,200,94,.86);

    box-shadow:
        inset 0 1px 3px rgba(0,0,0,.42),
        0 0 0 2px rgba(216,164,63,.10),
        0 0 18px rgba(216,164,63,.12);
}

.start-city-arrow{
    color:#d8a43f;
    font-size:17px;
    line-height:1;

    transition:transform .16s ease;
}

.start-city-picker.is-open .start-city-arrow{
    transform:rotate(180deg);
}

.start-city-dropdown{
    position:absolute;
    z-index:50;
    left:0;
    right:0;
    top:calc(100% + 6px);

    display:none;

    padding:10px;

    background:
        linear-gradient(
            180deg,
            rgba(8,18,32,.98) 0%,
            rgba(3,10,20,.98) 100%
        );

    border:1px solid rgba(216,164,63,.56);
    border-radius:6px;

    box-shadow:
        0 22px 50px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.06);
}

.start-city-picker.is-open .start-city-dropdown{
    display:block;
}

.start-city-search-wrap{
    margin-bottom:8px;
}

.start-city-search{
    width:100%;
    height:38px;

    padding:0 12px;

    color:#e8edf2;
    background:rgba(2,8,16,.82);

    border:1px solid rgba(232,237,242,.16);
    border-radius:4px;

    outline:none;

    font-size:14px;
    font-weight:400;
}

.start-city-search::placeholder{
    color:rgba(232,237,242,.48);
}

.start-city-search:focus{
    border-color:rgba(216,164,63,.62);
    box-shadow:0 0 0 2px rgba(216,164,63,.10);
}

.start-city-options{
    max-height:230px;
    overflow:auto;

    padding-right:4px;
}

.start-city-options::-webkit-scrollbar{
    width:8px;
}

.start-city-options::-webkit-scrollbar-track{
    background:rgba(255,255,255,.05);
    border-radius:10px;
}

.start-city-options::-webkit-scrollbar-thumb{
    background:rgba(216,164,63,.55);
    border-radius:10px;
}

.start-city-option{
    width:100%;

    padding:11px 12px;
    margin-bottom:6px;

    display:block;

    color:#e8edf2;
    background:rgba(255,255,255,.035);

    border:1px solid rgba(255,255,255,.07);
    border-radius:4px;

    text-align:left;
    cursor:pointer;

    transition:
        background .16s ease,
        border-color .16s ease,
        transform .16s ease;
}

.start-city-option:last-child{
    margin-bottom:0;
}

.start-city-option:hover{
    background:rgba(216,164,63,.13);
    border-color:rgba(216,164,63,.46);
    transform:translateX(2px);
}

.start-city-option.is-selected{
    background:rgba(216,164,63,.18);
    border-color:rgba(241,200,94,.76);
}

.start-city-option-main{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;

    margin-bottom:4px;
}

.start-city-option-main strong{
    color:#f1c85e;

    font-family:Georgia, "Times New Roman", serif;
    font-size:15px;
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;
}

.start-city-option-main em{
    color:rgba(232,237,242,.66);

    font-style:normal;
    font-size:12px;
    letter-spacing:1px;
}

.start-city-option-meta{
    display:block;

    color:rgba(232,237,242,.78);

    font-size:13px;
    line-height:1.4;
}

.start-city-option.is-hidden{
    display:none;
}

.loginscreen {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(rgba(4, 9, 14, 0.55), rgba(4, 9, 14, 0.78)),
        url("/assets/backgrounds/startscreen.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.loginscreen .overlay {
    width: 100%;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   GFT AUTH MOBILE PATCH
   Login/Register/Start-City mobil entschärft.
   ========================================================= */

@media (max-width: 900px) {
    .auth-page,
    .loginscreen,
    .loginscreen .overlay {
        min-height: calc(100svh - var(--header-height)) !important;
        padding: 34px 14px !important;
    }

    .auth-frame,
    .auth-card,
    .auth-panel {
        width: 100% !important;
        max-width: 620px !important;
        padding: 34px 24px 30px !important;
        box-sizing: border-box !important;
    }

    .auth-heading h1,
    .start-city-page .headline-with-icons h1 {
        font-size: clamp(28px, 8vw, 38px) !important;
        line-height: 1.25 !important;
        letter-spacing: .14em !important;
    }

    .auth-subline {
        gap: 10px !important;
    }

    .auth-subline span {
        width: 46px !important;
    }

    .auth-subline strong {
        font-size: 11px !important;
        letter-spacing: .22em !important;
    }

    .auth-heading p,
    .auth-lead,
    .auth-info {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }

    .auth-form input,
    .auth-form select,
    .auth-form textarea,
    .form-row input,
    .form-row select,
    .form-row textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
    }

    .auth-button,
    .auth-submit,
    .btn-primary,
    .success-login-btn {
        width: 100% !important;
        min-width: 0 !important;
    }
}

@media (max-width: 520px) {
    .auth-frame,
    .auth-card,
    .auth-panel {
        padding: 30px 18px 26px !important;
    }

    .auth-heading h1,
    .start-city-page .headline-with-icons h1 {
        font-size: 28px !important;
        letter-spacing: .10em !important;
    }

    .start-city-page .headline-icon {
        display: none !important;
    }
}



/* ==========================================
   LOGIN – TWO-FACTOR STEP
========================================== */

.login-mfa-page .auth-frame{
    width:min(780px, 100%);
}

.auth-mfa-status{
    margin:0 0 18px;
    padding:13px 16px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    color:#d9ffe7;
    background:rgba(22,82,48,.42);
    border:1px solid rgba(92,210,132,.38);
    border-radius:6px;
    font-size:14px;
    line-height:1.45;
    text-align:center;
}

.auth-mfa-status__icon{
    width:24px;
    height:24px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 24px;
    color:#b9f6ce;
    border:1px solid rgba(92,210,132,.55);
    border-radius:50%;
    font-weight:700;
}

.auth-mfa-code-input{
    height:58px !important;
    padding:0 18px !important;
    color:#f7e8bd !important;
    border-color:rgba(216,164,63,.62) !important;
    font-family:Consolas, "Courier New", monospace;
    font-size:26px !important;
    font-weight:700 !important;
    letter-spacing:.34em;
    text-align:center;
}

.auth-mfa-code-input::placeholder{
    font-family:"Segoe UI", Arial, sans-serif;
    font-size:14px;
    font-weight:400;
    letter-spacing:.04em;
}

.auth-mfa-expiry{
    margin:-4px 0 2px;
    color:rgba(232,237,242,.62);
    font-size:13px;
    line-height:1.5;
    text-align:center;
}

.auth-mfa-recovery{
    overflow:hidden;
    background:rgba(2,8,16,.34);
    border:1px solid rgba(216,164,63,.24);
    border-radius:6px;
}

.auth-mfa-recovery summary{
    padding:13px 15px;
    color:#d8a43f;
    cursor:pointer;
    font-size:14px;
    font-weight:600;
    letter-spacing:.03em;
    user-select:none;
}

.auth-mfa-recovery[open] summary{
    border-bottom:1px solid rgba(216,164,63,.18);
}

.auth-mfa-recovery__body{
    padding:15px;
}

.auth-mfa-recovery__body > p{
    margin:0 0 13px;
    color:rgba(232,237,242,.76);
    font-size:13px;
    line-height:1.55;
}

.auth-mfa-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
}

.auth-secondary{
    width:100%;
    height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#e8edf2;
    background:linear-gradient(180deg, rgba(16,49,68,.96), rgba(7,30,45,.96));
    border:1px solid rgba(216,164,63,.48);
    border-radius:4px;
    font-family:"Segoe UI", Arial, sans-serif;
    font-size:13px;
    letter-spacing:1px;
    text-transform:uppercase;
    cursor:pointer;
    transition:background .16s ease, border-color .16s ease, transform .16s ease;
}

.auth-secondary:hover{
    transform:translateY(-1px);
    background:linear-gradient(180deg, rgba(24,67,90,.98), rgba(10,39,57,.98));
    border-color:rgba(241,200,94,.76);
}

@media (max-width: 520px){
    .auth-mfa-code-input{
        font-size:22px !important;
        letter-spacing:.24em;
    }
}
