﻿/* ---- Sitenin görsel diliyle uyumlu tasarım değişkenleri ---- */
:root {
    --bg-page: #f7f8fb; /* genel açık gri arka plan */
    --card-bg: #fff;
    --card-brd: rgba(0,0,0,0.06);
    --text: #1a1f24;
    --muted: #6b7682;
    --accent: #ff8a00; /* turuncu aksan */
    --accent-2: #ffb25a; /* gradient için yumuşak turuncu */
    --radius-xl: 20px; /* ürün kartlarıyla aynı büyük radius hissi */
    --shadow-soft: 0 10px 30px rgba(0,0,0,.08);
    --shadow-card: 0 12px 28px rgba(17,24,39,.10);
    --focus: 0 0 0 3px rgba(255,138,0,.22);
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

    body.login-standalone {
        margin: 0;
        font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
        color: var(--text);
        background: var(--bg-page);
    }

/* Sağ üstte yumuşak leke (sitedeki blob/spot ışık hissi) */
.bg-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

    .bg-ambient::before {
        content: "";
        position: absolute;
        right: -20vw;
        top: -10vh;
        width: 60vw;
        height: 60vh;
        background: radial-gradient(40% 40% at 70% 30%, rgba(20,28,38,.18), transparent 70%), radial-gradient(40% 40% at 80% 60%, rgba(0,0,0,.06), transparent 75%);
        filter: blur(8px);
    }

/* İçerik genişliği: sitenin container mantığına yakın */
.container {
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    justify-items: center;
    padding: 32px 16px;
    max-width: 1200px;
    margin-inline: auto;
}

/* Logo çizgisi (header yerine) */
.brand-line {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.brand {
    height: 240px;
    opacity: .95;
}

/* İki kolonlu yerleşim (hero + form). Mobilde tek kolon */
.auth-card {
    width: min(520px, 92vw);
    background: var(--card-bg);
    border: 1px solid var(--card-brd);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 26px 26px 18px;
}

/* Başlık */
.auth-head {
    text-align: center;
    margin-bottom: 14px;
}

.icon-wrap {
    width: 54px;
    height: 54px;
    margin-inline: auto 0;
    margin: 2px auto 8px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: linear-gradient(180deg, rgba(255,178,90,.2), rgba(255,138,0,.18));
    border-radius: 16px;
}

.icon {
    width: 28px;
    height: 28px;
}

.title {
    font-size: clamp(22px, 2.6vw, 26px);
    margin: 6px 0 4px;
    letter-spacing: .2px;
}

.sub {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

/* Form */
.auth-form {
    display: grid;
    gap: 14px;
    margin-top: 8px;
}

.form-group {
    display: grid;
    gap: 8px;
}

label {
    font-size: 14px;
    color: var(--muted);
}

.input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.08);
    background: #f9fafb;
    padding: 12px 14px;
    outline: none;
    transition: box-shadow .2s, border-color .2s, background .2s;
}

    .input:focus {
        border-color: var(--accent);
        box-shadow: var(--focus);
        background: #fff;
    }

    .input::placeholder {
        color: #9aa5b1;
    }

.input-wrap {
    position: relative;
}

.pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 16px;
    opacity: .65;
}

    .pw-toggle:hover {
        opacity: .9;
    }

/* Hata stili (MVC Unobtrusive) */
.field-error, .field-validation-error {
    color: #d14343;
    font-size: 12px;
}

.input.input-validation-error {
    border-color: #d14343;
    box-shadow: 0 0 0 3px rgba(209,67,67,.18);
}

.validation-summary {
    background: #fff2f2;
    border: 1px solid #ffd4d4;
    color: #b42323;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
}

/* Remember/Forgot */
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.chk-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.chk {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

.link {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

    .link:hover {
        color: var(--text);
        text-decoration: underline;
    }

/* Buton: sitedeki turuncu aksanı referans alan gradient */
.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    cursor: pointer;
    border-radius: 14px;
    padding: 12px 16px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 22px rgba(255,138,0,.28);
    transition: transform .06s ease, filter .2s ease, box-shadow .2s ease;
}

    .btn-primary:hover {
        filter: brightness(1.04);
        box-shadow: 0 12px 26px rgba(255,138,0,.34);
    }

    .btn-primary:active {
        transform: translateY(1px);
    }

.w-100 {
    width: 100%;
}

/* Footer benzeri mini bilgi */
.auth-foot {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.muted {
    color: var(--muted);
}

.link-strong {
    color: #e16100;
    font-weight: 700;
    text-decoration: none;
}

    .link-strong:hover {
        text-decoration: underline;
    }

.mini-info {
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
    display: flex;
    gap: 10px;
    align-items: center;
}

    .mini-info a {
        color: inherit;
    }

/* Mobil ayarları */
@media (max-width: 520px) {
    .auth-card {
        padding: 22px 16px 14px;
    }

    .brand {
        height: 200px;
    }
}
