﻿:root {
    --bg: #0f172a; /* arka plan */
    --card: rgba(255,255,255,0.08);
    --card-border: rgba(255,255,255,0.12);
    --text: #e2e8f0;
    --muted: #000;
    --brand: #6366f1;
    --brand-2: #22d3ee;
    --error: #ef4444;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0,0,0,.25);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f8fafc;
        --card: #ffffffcc;
        --card-border: #e2e8f0;
        --text: #0f172a;
        --muted: #475569;
        --shadow: 0 10px 30px rgba(2,6,23,.08);
    }
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    color: var(--text);
    background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.2)), url('../images/background.jpg') no-repeat center/cover;
    /*background: radial-gradient(1200px 700px at 10% 10%, #1e293b 0%, transparent 60%), radial-gradient(900px 500px at 90% 90%, #0ea5e9 0%, transparent 55%), var(--bg);*/
    display: grid;
    place-items: center;
    padding: 24px;
}

.container {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.logo {
    /*width: 42px;
    height: 42px;
    border-radius: 12px;
    background: conic-gradient(from 180deg at 50% 50%, var(--brand), var(--brand-2), var(--brand));
    box-shadow: 0 6px 20px rgba(99,102,241,.35);*/
}

h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: .2px;
    color: #000;
}

p.sub {
    margin: 6px 0 18px;
    color: #000;
    font-size: 14px
}

.field {
    margin-bottom: 14px
}

label {
    display: block;
    font-size: 13px;
    color: #000;
    margin-bottom: 6px;
    font-weight:bold;
}

.input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    color: #000;
    outline: none;
    transition: .2s;
}

    .input::placeholder {
        color: #000;
    }

    .input:focus {
        border-color: #000;
        box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 18%, transparent)
    }

.password-wrap {
    position: relative
}

.toggle {
    position: absolute;
    inset: 0 10px 0 auto;
    width: 40px;
    display: grid;
    place-items: center;
    color: var(--muted);
    cursor: pointer;
    border: none;
    background: transparent;
    font-size: 12px;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0 16px
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted)
}

    .checkbox input {
        width: 16px;
        height: 16px
    }

.btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #0a9db4, #49becb);
    color: white;
    font-weight: 600;
    letter-spacing: .3px;
    transition: transform .06s ease, filter .2s ease;
}

    .btn:active {
        transform: translateY(1px)
    }

.links {
    margin-top: 14px;
    text-align: center;
    font-size: 14px
}

    .links a {
        color: #000;
        text-decoration: none;
        font-weight:bold;
            
    }

        .links a:hover {
            text-decoration: underline
        }

/* küçük ekran iyileştirmeleri */
@media (max-width:380px) {
    .container {
        padding: 22px 18px
    }

    h2 {
        font-size: 20px
    }
}

/* basit hata/info mesajı */
.alert {
    display: none;
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px
}

    .alert.error {
        display: block;
        background: #fee2e2;
        color: #991b1b;
        border: 1px solid #fecaca
    }

    .alert.ok {
        display: block;
        background: #dcfce7;
        color: #065f46;
        border: 1px solid #bbf7d0
    }
