/* MyAirX Auth UI – AirX Style
   Stand: 2026-09-22
   Nur für Login/Aktivierung/Passwort-Reset-Seiten.
*/

:root {
    --ax-bg: #050911;
    --ax-panel: rgba(10, 17, 29, .92);
    --ax-panel-2: rgba(13, 24, 38, .86);
    --ax-line: rgba(100, 138, 177, .22);
    --ax-line-strong: rgba(75, 184, 255, .38);
    --ax-blue: #4bb8ff;
    --ax-blue-2: #3d89d6;
    --ax-text: #f5f8fb;
    --ax-muted: #93a1b3;
    --ax-muted-2: #6f7e91;
    --ax-danger: #ff7e87;
    --ax-success: #68d69c;
    --ax-shadow: 0 32px 90px rgba(0, 0, 0, .48);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    color: var(--ax-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background:
        radial-gradient(circle at 78% 20%, rgba(61, 137, 214, .18), transparent 33rem),
        radial-gradient(circle at 18% 80%, rgba(75, 184, 255, .08), transparent 28rem),
        linear-gradient(145deg, #04070c 0%, #07101a 45%, #08131f 100%);
    overflow-x: hidden;
}

body.auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 82%);
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
}

.auth-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: clamp(34px, 5vw, 78px);
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,.055);
}

.auth-stage::after {
    content: "";
    position: absolute;
    width: min(58vw, 820px);
    height: min(58vw, 820px);
    right: -28%;
    bottom: -28%;
    border-radius: 50%;
    border: 1px solid rgba(75,184,255,.10);
    box-shadow:
        0 0 0 80px rgba(75,184,255,.025),
        0 0 0 160px rgba(75,184,255,.018),
        inset 0 0 120px rgba(75,184,255,.02);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    width: fit-content;
    text-decoration: none;
    color: var(--ax-text);
}

.auth-brand-mark {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ax-line-strong);
    border-radius: 11px;
    color: var(--ax-blue);
    background: linear-gradient(145deg, rgba(75,184,255,.14), rgba(75,184,255,.03));
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -.06em;
    box-shadow: inset 0 0 18px rgba(75,184,255,.06);
}

.auth-brand-name {
    font-size: 20px;
    font-weight: 850;
    letter-spacing: .16em;
}

.auth-brand-sub {
    display: block;
    margin-top: 2px;
    color: var(--ax-muted-2);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.auth-stage-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 80px 0;
}

.auth-eyebrow {
    margin-bottom: 18px;
    color: var(--ax-blue);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .20em;
    text-transform: uppercase;
}

.auth-stage h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(46px, 6.6vw, 96px);
    line-height: .96;
    letter-spacing: -.025em;
    font-weight: 850;
}

.auth-stage h1 span {
    color: var(--ax-blue);
}

.auth-stage-lead {
    max-width: 590px;
    margin: 28px 0 0;
    color: #b7c2cf;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.65;
}

.auth-stage-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ax-muted-2);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.auth-stage-footer::before {
    content: "";
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, var(--ax-blue), transparent);
}

.auth-form-side {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: clamp(24px, 5vw, 72px);
}

.auth-card {
    width: min(500px, 100%);
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid var(--ax-line);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(15, 25, 40, .94), rgba(7, 13, 22, .94));
    box-shadow: var(--ax-shadow);
    backdrop-filter: blur(18px);
}

.auth-card-header {
    margin-bottom: 30px;
}

.auth-card-kicker {
    margin-bottom: 10px;
    color: var(--ax-blue);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.auth-card h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.07;
    letter-spacing: -.04em;
}

.auth-card-intro {
    margin: 13px 0 0;
    color: var(--ax-muted);
    font-size: 14px;
    line-height: 1.65;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.auth-label {
    color: #dbe3ec;
    font-size: 13px;
    font-weight: 750;
}

.auth-link {
    color: var(--ax-blue);
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
}

.auth-link:hover {
    color: #86ceff;
}

.auth-input-wrap {
    position: relative;
}

.auth-input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid rgba(126, 150, 176, .28);
    border-radius: 12px;
    outline: none;
    background: rgba(3, 8, 14, .66);
    color: #fff;
    font: inherit;
    font-size: 15px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-input::placeholder {
    color: #58677a;
}

.auth-input:focus {
    border-color: rgba(75,184,255,.72);
    background: rgba(5, 12, 21, .9);
    box-shadow: 0 0 0 3px rgba(75,184,255,.09);
}

.auth-input.has-toggle {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #7e8da0;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--ax-blue);
    background: rgba(75,184,255,.06);
}

.password-toggle svg {
    width: 19px;
    height: 19px;
}

.auth-btn {
    width: 100%;
    min-height: 54px;
    margin-top: 8px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #53bcff 0%, #3d89d6 100%);
    color: #03101a;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .04em;
    box-shadow: 0 14px 34px rgba(61,137,214,.24);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 17px 40px rgba(61,137,214,.31);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-alert {
    margin: 0 0 20px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.55;
}

.auth-alert.error {
    color: #ffd8db;
    border: 1px solid rgba(255,126,135,.30);
    background: rgba(255,126,135,.08);
}

.auth-alert.success {
    color: #d8ffea;
    border: 1px solid rgba(104,214,156,.30);
    background: rgba(104,214,156,.08);
}

.auth-note {
    margin-top: 22px;
    color: var(--ax-muted-2);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.auth-note a {
    color: var(--ax-blue);
    text-decoration: none;
}

.auth-divider {
    height: 1px;
    margin: 26px 0 22px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #9daaba;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.auth-back:hover {
    color: var(--ax-blue);
}

.auth-password-hint {
    margin-top: -8px;
    margin-bottom: 18px;
    color: var(--ax-muted-2);
    font-size: 12px;
    line-height: 1.5;
}

.auth-account-chip {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid rgba(75,184,255,.20);
    border-radius: 12px;
    background: rgba(75,184,255,.055);
    color: #c8d5e3;
    font-size: 13px;
    line-height: 1.5;
}

.auth-account-chip strong {
    color: #fff;
}

@media (max-width: 980px) {
    .auth-shell {
        display: block;
    }

    .auth-stage {
        min-height: auto;
        padding: 32px 28px 48px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.055);
    }

    .auth-stage-copy {
        padding: 70px 0 40px;
    }

    .auth-stage h1 {
        max-width: 680px;
    }

    .auth-form-side {
        min-height: auto;
        padding: 42px 22px 64px;
    }
}

@media (max-width: 620px) {
    .auth-stage {
        padding: 24px 20px 36px;
    }

    .auth-stage-copy {
        padding: 52px 0 28px;
    }

    .auth-stage h1 {
        font-size: clamp(42px, 14vw, 64px);
    }

    .auth-stage-lead {
        font-size: 15px;
    }

    .auth-stage-footer {
        font-size: 9px;
    }

    .auth-form-side {
        padding: 28px 14px 44px;
    }

    .auth-card {
        padding: 26px 20px;
        border-radius: 19px;
    }
}


/* Original AirX logo in Auth header */
.auth-brand--logo {
    display: inline-flex;
    align-items: center;
    width: auto;
}

.auth-brand-logo {
    display: block;
    width: auto;
    height: 70px;
    max-width: 264px;
    object-fit: contain;
}

@media (max-width: 620px) {
    .auth-brand-logo {
        height: 55px;
        max-width: 216px;
    }
}


/* Visual alignment with the visible left edge of the original AirX logo */
.auth-stage-copy {
    margin-left: 34px;
}

@media (max-width: 620px) {
    .auth-stage-copy {
        margin-left: 26px;
    }
}


/* Browser autofill: keep MyAirX dark input styling instead of yellow */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus,
.auth-input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px #050c15 inset !important;
    box-shadow: 0 0 0 1000px #050c15 inset !important;
    border: 1px solid rgba(126, 150, 176, .28) !important;
    transition: background-color 9999s ease-out 0s;
}

.auth-input:autofill {
    color: #ffffff !important;
    background: #050c15 !important;
    border: 1px solid rgba(126, 150, 176, .28) !important;
}
