:root {
    --arkel-navy: #0A1F44;
    --arkel-navy-700: #102A63;
    --arkel-blue: #1E63C8;
    --arkel-blue-600: #1A56B0;
    --arkel-blue-100: #E8F0FB;
    --arkel-cyan: #38BDF8;
    --arkel-violet: #7C3AED;
    --arkel-ink: #0F172A;
    --arkel-ink-2: #334155;
    --arkel-muted: #64748B;
    --arkel-line: #E2E8F0;
    --arkel-line-2: #CBD5E1;
    --arkel-bg: #F8FAFC;
    --arkel-danger: #DC2626;
    --arkel-success: #16A34A;

    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

.login-body {
    margin: 0;
    overflow-x: hidden;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    color: var(--arkel-ink);
    background: #050B1F;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    width: 100%;
}

.login-stage {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
    color: #F1F5F9;
    background:
        radial-gradient(1200px 800px at 15% 12%, rgba(30, 99, 200, .38) 0%, transparent 58%),
        radial-gradient(1100px 900px at 90% 88%, rgba(56, 189, 248, .28) 0%, transparent 60%),
        radial-gradient(900px 700px at 50% 50%, rgba(124, 58, 237, .10) 0%, transparent 65%),
        linear-gradient(140deg, #040917 0%, #08152F 45%, #0A1F44 100%);
}

.stage-aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.stage-aurora__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

.stage-aurora__blob--a {
    top: -18%;
    left: -10%;
    width: 55%;
    height: 70%;
    background: radial-gradient(circle, rgba(30, 99, 200, .95) 0%, transparent 70%);
    opacity: .85;
    animation: aurora-drift-a 24s ease-in-out infinite;
}

.stage-aurora__blob--b {
    bottom: -20%;
    right: -10%;
    width: 55%;
    height: 70%;
    background: radial-gradient(circle, rgba(56, 189, 248, .80) 0%, transparent 70%);
    opacity: .75;
    animation: aurora-drift-b 28s ease-in-out infinite;
}

.stage-aurora__blob--c {
    top: 35%;
    left: 42%;
    width: 40%;
    height: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, .55) 0%, transparent 70%);
    opacity: .45;
    animation: aurora-drift-c 34s ease-in-out infinite;
}

@keyframes aurora-drift-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(8%, 6%) scale(1.1); }
}

@keyframes aurora-drift-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-8%, -6%) scale(1.12); }
}

@keyframes aurora-drift-c {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: .45; }
    50%      { transform: translate(5%, -8%) scale(.92); opacity: .55; }
}

.stage-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, #000 0%, transparent 82%);
    -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, #000 0%, transparent 82%);
}

.stage-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: .35;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 240px 240px;
}

.stage-top,
.stage-center,
.stage-footer {
    position: relative;
    z-index: 2;
}

.stage-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 28px 44px;
    gap: 16px;
}

.stage-center {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    
    padding: 20px 20px 88px;
}

.stage-heading {
    text-align: center;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.stage-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2vw, 28px);
    font-size: clamp(44px, 5.5vw, 72px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.035em;
    margin: 0;
    color: #F1F5F9;
}

    .stage-title__word {
        display: inline-block;
        line-height: 1;
        background: linear-gradient(120deg, #FFFFFF 0%, #BAE6FD 38%, #38BDF8 72%, #7DD3FC 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        filter: drop-shadow(0 10px 30px rgba(56, 189, 248, .35));
    }

.stage-title__logo {
        height: 0.92em;
        width: auto;
        max-height: 1em;
        display: block;
        flex-shrink: 0;
        object-fit: contain;
        object-position: center center;
        filter: brightness(0) invert(1) drop-shadow(0 6px 18px rgba(56, 189, 248, .28));
        opacity: .98;
        /* PNG üst boşluk / cap-height farkı: “Schema” ile optik hiza */
        transform: translateY(0.06em);
    }

.stage-subtitle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: #94A3B8;
    margin: 0;
    white-space: nowrap;
}

    .stage-subtitle::before,
    .stage-subtitle::after {
        content: "";
        flex: 0 0 36px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(56, 189, 248, .7), transparent);
    }

.login-card {
    position: relative;
    width: 100%;
    max-width: 464px;
    padding: 48px 32px 36px;
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    color: var(--arkel-ink);
    box-shadow:
        0 50px 100px -20px rgba(3, 9, 24, .65),
        0 30px 60px -20px rgba(30, 99, 200, .35),
        0 0 0 1px rgba(255, 255, 255, .06);
}

.login-card::before {
        content: "";
        position: absolute;
        top: -1px;
        left: 12%;
        right: 12%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(56, 189, 248, .7), transparent);
        border-radius: 1px;
    }

.login-card__header {
    position: relative;
    margin-bottom: 28px;
    padding-left: 16px;
    flex-wrap: nowrap;
}

    .login-card__header::before {
        content: "";
        position: absolute;
        left: 0;
        top: 6px;
        bottom: 6px;
        width: 3px;
        border-radius: 3px;
        background: linear-gradient(180deg, var(--arkel-blue) 0%, var(--arkel-cyan) 100%);
        box-shadow: 0 0 12px rgba(56, 189, 248, .45);
    }

    .login-card__header h2,
    .login-card__title {
        font-size: clamp(16px, 1.2vw + 14px, 19px);
        font-weight: 700;
        letter-spacing: -.02em;
        margin: 0;
        color: var(--arkel-ink);
        line-height: 1.25;
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
    }

.stage-footer {
    padding: 16px 44px 24px;
    text-align: center;
    font-size: 12px;
    color: #94A3B8;
    letter-spacing: .02em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Login card header: language flags (full flag visible, no tight circular crop) */
.login-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Same frame for both states; only the flag image is muted when inactive */
.login-lang-switch__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 10px;
    line-height: 0;
    border: 1px solid rgba(15, 23, 42, .12);
    background: #EEF2F7;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .07);
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.login-lang-switch__btn.is-active {
    border-color: rgba(30, 99, 200, .42);
    background: rgba(30, 99, 200, .09);
    box-shadow:
        0 1px 3px rgba(15, 23, 42, .08),
        0 0 0 1px rgba(30, 99, 200, .12);
}

.login-lang-switch__btn.is-inactive:hover {
    border-color: rgba(15, 23, 42, .18);
    background: #E8EDF4;
}

.login-lang-switch__btn.is-active .login-lang-switch__flag {
    filter: none;
    opacity: 1;
}

.login-lang-switch__btn.is-inactive .login-lang-switch__flag {
    filter: grayscale(1);
    opacity: .7;
}

.login-lang-switch__btn.is-inactive:hover .login-lang-switch__flag {
    opacity: .88;
    filter: grayscale(.35);
}

.login-lang-switch__flag {
    display: block;
    width: 32px;
    height: 22px;
    object-fit: contain;
    object-position: center;
    border-radius: 3px;
    background: #fff;
}

.lang-switch {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

    .lang-switch .lang {
        text-decoration: none;
        border: 0;
        background: transparent;
        color: #94A3B8;
        padding: 6px 14px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 12px;
        cursor: pointer;
        letter-spacing: .06em;
        transition: background .18s ease, color .18s ease, box-shadow .18s ease;
    }

        .lang-switch .lang:hover {
            color: #F1F5F9;
        }

        .lang-switch .lang.is-active {
            background: #FFFFFF;
            color: var(--arkel-blue);
            box-shadow:
                0 1px 2px rgba(0, 0, 0, .12),
                0 0 0 1px rgba(30, 99, 200, .10);
        }

.login-alert {
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 20px;
}

    .login-alert.is-visible {
        display: flex;
    }

    .login-alert i {
        font-size: 18px;
        line-height: 1;
        margin-top: 1px;
    }

.form-field {
    margin-bottom: 18px;
}

    .form-field label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--arkel-ink-2);
    }

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-wrap > i.prefix {
        position: absolute;
        left: 12px;
        color: var(--arkel-muted);
        font-size: 15px;
        pointer-events: none;
        transition: color .15s;
    }

    .input-wrap .form-control {
        width: 100%;
        height: 44px;
        padding: 0 42px 0 40px;
        border: 1px solid var(--arkel-line);
        border-radius: 10px;
        background: #FAFBFD;
        font-size: 14px;
        color: var(--arkel-ink);
        transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    }

        .input-wrap .form-control::placeholder {
            color: var(--arkel-line-2);
        }

        .input-wrap .form-control:hover {
            border-color: var(--arkel-line-2);
            background: #fff;
        }

        .input-wrap .form-control:focus {
            outline: 0;
            background: #fff;
            border-color: var(--arkel-blue);
            box-shadow:
                0 0 0 4px rgba(30, 99, 200, .12),
                0 1px 2px rgba(15, 23, 42, .04);
        }

        .input-wrap .form-control:focus ~ i.prefix,
        .input-wrap:focus-within > i.prefix {
            color: var(--arkel-blue);
        }

        .input-wrap .form-control.is-invalid {
            border-color: var(--arkel-danger);
        }

            .input-wrap .form-control.is-invalid:focus {
                box-shadow: 0 0 0 4px rgba(220, 38, 38, .12);
            }

.toggle-pass {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: var(--arkel-muted);
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, color .15s;
}

    .toggle-pass:hover {
        color: var(--arkel-ink);
        background: var(--arkel-bg);
    }

.field-error {
    display: block;
    color: var(--arkel-danger);
    font-size: 12px;
    margin-top: 6px;
    min-height: 1em;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 24px;
    gap: 12px;
    flex-wrap: wrap;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--arkel-ink-2);
    cursor: pointer;
    user-select: none;
}

    .check input {
        width: 16px;
        height: 16px;
        accent-color: var(--arkel-blue);
        cursor: pointer;
    }

.link {
    color: var(--arkel-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .15s;
}

    .link:hover {
        color: var(--arkel-blue-600);
        text-decoration: underline;
    }

.btn-arkel {
    position: relative;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background:
        linear-gradient(180deg, #2874DC 0%, var(--arkel-blue) 55%, var(--arkel-blue-600) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .25s ease, filter .15s ease;
    box-shadow:
        0 14px 30px -8px rgba(30, 99, 200, .55),
        0 4px 10px -2px rgba(30, 99, 200, .30),
        inset 0 1px 0 rgba(255, 255, 255, .20);
}

    .btn-arkel:hover {
        filter: brightness(1.08);
        box-shadow:
            0 18px 38px -8px rgba(30, 99, 200, .62),
            0 6px 14px -2px rgba(30, 99, 200, .40),
            0 0 38px -6px rgba(56, 189, 248, .45),
            inset 0 1px 0 rgba(255, 255, 255, .25);
    }

    .btn-arkel:active {
        transform: translateY(1px);
    }

    .btn-arkel:disabled {
        opacity: .7;
        cursor: not-allowed;
        filter: saturate(.5);
    }

    .btn-arkel .spinner {
        display: none;
        width: 18px;
        height: 18px;
        border: 2px solid rgba(255, 255, 255, .4);
        border-top-color: #fff;
        border-radius: 50%;
        animation: btnspin .7s linear infinite;
    }

    .btn-arkel.is-loading .label,
    .btn-arkel.is-loading i:not(.spinner) {
        display: none;
    }

    .btn-arkel.is-loading .spinner {
        display: inline-block;
    }

@keyframes btnspin {
    to { transform: rotate(360deg); }
}

@media (max-width: 960px) {
    .stage-top {
        padding: 24px 28px;
    }

    .stage-center {
        padding: 16px 24px 64px;
        gap: 28px;
    }

    .stage-footer {
        padding: 16px 24px 24px;
    }
}

@media (max-width: 720px) {
    .stage-top {
        padding: 18px 16px;
    }

    .stage-center {
        padding: 8px 16px 40px;
        gap: 28px;
        justify-content: flex-start;
        padding-top: 32px;
    }

    .stage-heading {
        gap: 14px;
    }

    .stage-title {
        font-size: clamp(36px, 10vw, 52px);
        gap: clamp(12px, 3vw, 20px);
    }

    .stage-subtitle {
        font-size: 11px;
        letter-spacing: .24em;
    }

    .login-card {
        padding: 32px 22px 28px;
        border-radius: 20px;
        max-width: 100%;
    }

    .login-card__header {
        margin-bottom: 22px;
    }

    .input-wrap .form-control {
        height: 44px;
        font-size: 14px;
    }

    .btn-arkel {
        height: 48px;
        font-size: 14px;
    }

    .stage-footer {
        padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .stage-top {
        padding: 14px 14px;
    }

    .stage-center {
        padding: 20px 14px 32px;
        gap: 22px;
    }

    .stage-heading {
        gap: 12px;
    }

    .stage-title {
        font-size: clamp(32px, 11vw, 44px);
    }

    .stage-subtitle {
        letter-spacing: .2em;
        font-size: 10.5px;
    }

    .stage-subtitle::before,
    .stage-subtitle::after {
        flex: 0 0 18px;
    }

    .login-card {
        padding: 26px 18px 24px;
        border-radius: 18px;
    }

    .login-card__header h2,
    .login-card__title {
        white-space: normal;
    }

    .form-field {
        margin-bottom: 14px;
    }

    .form-row {
        margin: 2px 0 18px;
    }
}

@media (max-width: 360px) {
    .stage-subtitle {
        white-space: normal;
        text-align: center;
        letter-spacing: .18em;
    }

    .stage-subtitle::before,
    .stage-subtitle::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stage-aurora__blob {
        animation: none !important;
    }
}

.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.recaptcha-notice {
    display: block;
    font-size: 11px;
    color: rgba(226, 232, 240, .55);
    line-height: 1.5;
}

.recaptcha-notice a {
    color: rgba(226, 232, 240, .7);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.recaptcha-notice a:hover {
    color: #fff;
}
