﻿
/* ── AUTH PAGE WRAPPER ────────────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--page-bg, #080C14);
    position: relative;
    overflow: hidden;
    padding: 24px 16px;
}

/* ── ARKAPLAN ─────────────────────────────────────────────────────────────── */
.auth-page__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.auth-page__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
}

.auth-page__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.auth-page__glow--1 {
    width: 500px;
    height: 500px;
    top: -200px;
    left: -100px;
    background: radial-gradient(circle, rgba(34,197,94,0.07) 0%, transparent 70%);
}

.auth-page__glow--2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -80px;
    background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
}

/* ── AUTH CARD ────────────────────────────────────────────────────────────── */
.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #0D1117;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 24px 64px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1), transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

    .auth-card.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

/* Geniş kart (Register) */
.auth-card--wide {
    max-width: 480px;
}

/* ── BRAND ────────────────────────────────────────────────────────────────── */
.auth-card__brand {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.auth-card__logo img {
    display: block;
}

/* ── HEAD ─────────────────────────────────────────────────────────────────── */
.auth-card__head {
    text-align: center;
    margin-bottom: 24px;
}

.auth-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

    /* Icon renk varyantları */
    .auth-card__icon--green,
    .auth-card__icon:not([class*="--"]) {
        background: rgba(34,197,94,0.1);
        border: 1px solid rgba(34,197,94,0.2);
    }

.auth-card__icon--red {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
}

.auth-card__title {
    font-family: var(--font-sans, 'Geist', system-ui, sans-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: #F0F4FF;
    letter-spacing: -0.03em;
    margin: 0 0 6px;
}

.auth-card__sub {
    font-size: 0.85rem;
    color: #8B9DBF;
    margin: 0;
}

/* ── ALERT ────────────────────────────────────────────────────────────────── */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 0.84rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.auth-alert--error {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    color: #F87171;
}

.auth-alert--success {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    color: #4ADE80;
}

.auth-alert svg {
    flex-shrink: 0;
}

/* ── SECURITY NOTE (Admin) ────────────────────────────────────────────────── */
.auth-security-note {
    display: flex;
    align-items: center;
    gap: 7px;
    justify-content: center;
    font-size: 0.75rem;
    color: #4B5A7A;
    font-family: var(--font-mono, monospace);
    letter-spacing: 0.03em;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: rgba(239,68,68,0.04);
    border: 1px solid rgba(239,68,68,0.1);
    border-radius: 8px;
}

/* ── FORM ─────────────────────────────────────────────────────────────────── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── FIELD ────────────────────────────────────────────────────────────────── */
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .auth-field label {
        font-size: 0.78rem;
        font-weight: 500;
        color: #8B9DBF;
        letter-spacing: 0.02em;
    }

.auth-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-field__forgot {
    font-size: 0.75rem;
    color: #4B5A7A;
    text-decoration: none;
    transition: color 0.18s;
}

    .auth-field__forgot:hover {
        color: #22C55E;
    }

/* Input wrap */
.auth-field__wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #161B27;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 9px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .auth-field__wrap:focus-within {
        border-color: rgba(34,197,94,0.4);
        box-shadow: 0 0 0 3px rgba(34,197,94,0.08);
    }

/* Admin için kırmızı focus */
.auth-card__icon--red ~ .auth-form .auth-field__wrap:focus-within {
    border-color: rgba(239,68,68,0.4);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.07);
}

.auth-field__icon {
    position: absolute;
    left: 13px;
    color: #4B5A7A;
    pointer-events: none;
    flex-shrink: 0;
}

.auth-field__wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 11px 40px 11px 38px;
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: 0.9rem;
    color: #F0F4FF;
    width: 100%;
}

    .auth-field__wrap input::placeholder {
        color: #4B5A7A;
    }

/* Şifre göster/gizle butonu */
.auth-field__eye {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #4B5A7A;
    cursor: pointer;
    padding: 4px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.18s;
}

    .auth-field__eye:hover {
        color: #8B9DBF;
    }

    .auth-field__eye.is-visible {
        color: #22C55E;
    }

/* ── TWO-COL ROW (Register) ──────────────────────────────────────────────── */
.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 420px) {
    .auth-row {
        grid-template-columns: 1fr;
    }
}

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

    .auth-btn:hover {
        transform: translateY(-2px);
    }

    .auth-btn:active {
        transform: translateY(0);
    }

/* Yeşil — Ana CTA (Owner Login / Register) */
.auth-btn--primary {
    background: #22C55E;
    color: #05130C;
    box-shadow: 0 4px 16px rgba(34,197,94,0.2);
}

    .auth-btn--primary:hover {
        opacity: 0.9;
        box-shadow: 0 8px 24px rgba(34,197,94,0.3);
    }

/* Outline */
.auth-btn--outline {
    background: transparent;
    color: #8B9DBF;
    border: 1px solid rgba(255,255,255,0.1);
}

    .auth-btn--outline:hover {
        background: #161B27;
        color: #F0F4FF;
        border-color: rgba(255,255,255,0.18);
    }

/* Kırmızı — Admin Login */
.auth-btn--danger {
    background: #EF4444;
    color: #fff;
    box-shadow: 0 4px 16px rgba(239,68,68,0.2);
}

    .auth-btn--danger:hover {
        background: #DC2626;
        opacity: 1;
        box-shadow: 0 8px 24px rgba(239,68,68,0.3);
    }

/* ── DIVIDER ──────────────────────────────────────────────────────────────── */
.auth-card__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
    color: #4B5A7A;
    font-size: 0.75rem;
}

    .auth-card__divider::before,
    .auth-card__divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(255,255,255,0.06);
    }

/* ── PASSWORD STRENGTH ────────────────────────────────────────────────────── */
.auth-strength {
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.auth-strength__fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.16,1,0.3,1), background 0.35s;
}

.auth-strength__label {
    font-size: 0.72rem;
    display: block;
    margin-top: 4px;
    font-family: var(--font-mono, monospace);
    letter-spacing: 0.04em;
    min-height: 14px;
}

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.auth-card__footer {
    text-align: center;
    font-size: 0.78rem;
    color: #4B5A7A;
    margin: 12px 0 0;
}

    .auth-card__footer a {
        color: #8B9DBF;
        text-decoration: none;
        transition: color 0.18s;
    }

        .auth-card__footer a:hover {
            color: #22C55E;
        }
