/* AetherGate Authentication Stylesheet - Frutiger Aero Edition */

:root {
    --ink: #14304a;
    --muted: #536a7d;
    --line: rgba(255, 255, 255, 0.72);
    --glass: rgba(255, 255, 255, 0.62);
    --glass-strong: rgba(255, 255, 255, 0.86);
    --teal: #1c7ed6;
    --teal-dark: #0b4d8c;
    --gold: #9a6a05;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
    background:
        linear-gradient(118deg, rgba(188, 229, 255, 0.95) 0%, rgba(222, 247, 243, 0.92) 38%, rgba(155, 193, 244, 0.92) 100%),
        linear-gradient(180deg, #e9f8ff 0%, #b9d3f4 100%);
    background-attachment: fixed;
}

a {
    color: var(--teal-dark);
    font-weight: 800;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.login-panel {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.8fr);
    gap: 32px;
    align-items: stretch;
}

.intro,
.form-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, var(--glass-strong), var(--glass));
    box-shadow: 0 18px 46px rgba(20, 48, 74, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.intro {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
}

.form-card {
    padding: 36px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ink);
    font-weight: 900;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(180deg, #6ee8ff 0%, #1c7ed6 48%, #0b4d8c 52%, #00a9c8 100%);
    color: white;
    font-size: 15px;
    letter-spacing: 0;
    box-shadow: 0 6px 18px rgba(0, 120, 180, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.kicker {
    margin: 32px 0 8px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal-dark);
}

h1 {
    margin: 0 0 14px;
    font-size: 46px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #0d2942;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.intro-copy {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 48ch;
}

.boundary-list {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: grid;
    gap: 12px;
}

.boundary-list li {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.45);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
}

.boundary-list span {
    color: var(--muted);
}

.boundary-list strong {
    color: var(--ink);
    text-align: right;
    white-space: nowrap;
}

.form-heading h2 {
    margin: 0 0 6px;
    font-size: 24px;
    letter-spacing: -0.02em;
    color: #0d2942;
}

.form-heading p {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.45;
}

.error-message {
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ffb4b4;
    background: #ffe3e3;
    color: #900;
    font-size: 14px;
    font-weight: 600;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #b2c9dc;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    color: var(--ink);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(28, 126, 214, 0.22), inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.button {
    width: 100%;
    padding: 13px 20px;
    border: 1px solid #1664a7;
    border-radius: 8px;
    background: linear-gradient(180deg, #3aa8f7 0%, #1c7ed6 50%, #125ea3 100%);
    color: white;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(28, 126, 214, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.1s, box-shadow 0.2s;
}

.button:hover {
    background: linear-gradient(180deg, #4cb3fa 0%, #228be6 50%, #156bb8 100%);
    box-shadow: 0 6px 18px rgba(28, 126, 214, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(28, 126, 214, 0.35);
}

.rune-id-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 18px;
    border: 1px solid rgba(214, 227, 251, 0.9);
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f5ff 100%);
    color: #173b6c;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(31, 111, 235, 0.12), inset 0 1px 0 white;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
}

.rune-id-button:hover {
    background: linear-gradient(180deg, #ffffff 0%, #e6efff 100%);
    border-color: #8bb5f8;
    box-shadow: 0 6px 18px rgba(31, 111, 235, 0.22);
}

.rune-id-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.sso-divider {
    margin: 22px 0 18px;
    text-align: center;
    position: relative;
}

.sso-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(160, 185, 210, 0.4);
}

.sso-divider span {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.secondary-action {
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.footer-note {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}

@media (max-width: 840px) {
    .login-shell {
        padding: 24px;
        align-items: flex-start;
    }

    .login-panel {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .intro,
    .form-card {
        padding: 28px;
    }

    .intro {
        min-height: auto;
    }

    .kicker {
        margin-top: 24px;
    }

    h1 {
        font-size: 34px;
    }

    .boundary-list li {
        display: block;
    }

    .boundary-list strong {
        display: block;
        margin-top: 4px;
        white-space: normal;
    }
}
