:root {
    --bg: #0f172a;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent: #22d3ee;
    --accent-2: #a78bfa;
    --radius: 18px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    background: radial-gradient(1200px 700px at 70% 10%, #0b1024, var(--bg));
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    display: grid;
    place-items: center;
}

.container {
    width: min(100%, 500px);
    padding: 20px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #111827e6, #0b1220e6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit
}

.logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 6px 18px rgba(34, 211, 238, .35)
}

h1 {
    margin: 0;
    font-size: clamp(22px, 3.6vw, 34px);
    letter-spacing: .5px
}

.lang-switch {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: #0b1220;
    padding: 6px;
    border-radius: 999px
}

.lang-btn {
    border: 0;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    font-weight: 600
}

.lang-btn.active {
    color: #0b1220;
    background: #e5e7eb
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px
}

.panel {
    width: 100%;
    max-width: 420px;
    border: 1px solid #1f2937;
    border-radius: var(--radius);
    background: #0b1220;
    padding: 22px;
    text-align: left;
}

.panel h2 {
    margin: 0 0 14px;
    font-size: clamp(18px, 2.6vw, 22px);
    color: #cbd5e1
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px
}

.label {
    font-size: 14px;
    color: #cbd5e1
}

input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #1f2937;
    background: #0b1220;
    color: var(--text);
    outline: none;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .2)
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    padding: 12px 16px;
    border-radius: 14px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #081018;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(167, 139, 250, .35);
    width: 100%;
}

.cta:hover {
    transform: translateY(-1px)
}

.warn {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #3f1d1d;
    color: #ffd1d1;
    border: 1px solid #5b2626;
    font-size: 14px;
}

footer {
    font-size: 12px;
    text-align: center;
    color: var(--muted);
    margin-top: 6px
}

@media (max-width:480px) {
    .container {
        padding: 16px
    }

    .panel {
        padding: 18px
    }
}

.warn.ok {
    background: #16341d;
    color: #c6ffd2;
    border: 1px solid #215c31;
}

/* Remember Me satırı: field'in column yapısını override et */
.field.checkbox-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;

    gap: 12px;
    margin-top: 10px;
    margin-bottom: 18px;

    cursor: pointer;
    user-select: none;
}

/* Native checkbox'ı görünmez yap ama layout'u bozma */
.field.checkbox-field input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* Senin input stiline yakın “açık zeminli” kutu */
.field.checkbox-field .checkbox-ui {
    width: 18px;
    height: 18px;
    border-radius: 6px;

    background: #eaf2ff;
    /* input ile uyumlu açık zemin */
    border: 1px solid rgba(0, 0, 0, 0.08);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.45) inset,
        0 6px 14px rgba(0, 0, 0, 0.18);

    transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Check işareti */
.field.checkbox-field .checkbox-ui::after {
    content: "";
    width: 6px;
    height: 10px;
    border-right: 2px solid rgba(6, 16, 32, 0.9);
    border-bottom: 2px solid rgba(6, 16, 32, 0.9);
    transform: rotate(45deg) scale(0);
    transform-origin: center;
    transition: transform 0.12s ease;
}

/* Label text: senin koyu panelinde okunur olsun */
.field.checkbox-field .checkbox-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Hover/active */
.field.checkbox-field:hover .checkbox-ui {
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 10px 22px rgba(0, 0, 0, 0.25);
}

/* Checked: butondaki gradient hissini küçük bir vurguyla ver */
.field.checkbox-field input:checked+.checkbox-ui {
    background: linear-gradient(135deg, #35d3ff, #8b74ff);
    border-color: rgba(255, 255, 255, 0.18);
}

.field.checkbox-field input:checked+.checkbox-ui::after {
    border-right-color: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.95);
    transform: rotate(45deg) scale(1);
}

/* Focus (klavye ile gezenler için) */
.field.checkbox-field input:focus-visible+.checkbox-ui {
    outline: 3px solid rgba(53, 211, 255, 0.35);
    outline-offset: 3px;
}