﻿/* =====================================================
   Gözde Uygun Atelier — Auth Pages Shared Stylesheet
   Dosya yolu: wwwroot/css/pages/auth.css
   ===================================================== */

:root {
    --bg-main: #FAF9F7;
    --bg-soft: #E6E1DA;
    --text-main: #2E2E2E;
    --text-muted: #6b6b6b;
    --text-light: #aaa;
    --accent: #C9A96A;
    --accent-dark: #a8843f;
    --danger: #c0392b;
    --danger-bg: #fdf3f3;
    --font-serif: 'Playfair Display', serif;
}

/* ── Sayfa kapsayıcı ── */
.auth {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-main);
    padding: 3rem 1rem;
}

.auth-shell {
    width: 100%;
    max-width: 500px;
}

/* ── Kart ── */
.auth-card {
    background: #fff;
    border: 1px solid var(--bg-soft);
    padding: 3.5rem 3rem;
    position: relative;
    box-shadow: 0 8px 40px rgba(201, 169, 106, 0.08);
    animation: authFadeUp 0.55s ease both;
}

    /* Köşe süsleri */
    .auth-card::before,
    .auth-card::after {
        content: '';
        position: absolute;
        width: 26px;
        height: 26px;
        border-color: var(--accent);
        border-style: solid;
        opacity: 0.45;
    }

    .auth-card::before {
        top: 14px;
        left: 14px;
        border-width: 1px 0 0 1px;
    }

    .auth-card::after {
        bottom: 14px;
        right: 14px;
        border-width: 0 1px 1px 0;
    }

/* ── Kart başlığı ── */
.auth-head {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand {
    font-family: var(--font-serif);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.55rem;
    display: block;
}

.auth-head h1 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.auth-head p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.auth-divider {
    width: 38px;
    height: 1px;
    background: var(--accent);
    margin: 0.9rem auto 0;
    opacity: 0.55;
}

/* ── Form alanları ── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.auth-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
    position: relative;
}

    .auth-field span {
        font-size: 0.73rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #888;
        margin-bottom: 0.42rem;
    }

    .auth-field .optional {
        font-size: 0.68rem;
        color: #bbb;
        letter-spacing: 0;
        text-transform: none;
        margin-left: 0.3rem;
    }

    .auth-field input {
        padding: 0.72rem 2.4rem 0.72rem 0.9rem;
        border: 1px solid #ddd;
        border-radius: 0;
        font-size: 0.93rem;
        color: var(--text-main);
        background: var(--bg-main);
        transition: border-color 0.2s, background 0.2s;
        font-family: inherit;
        width: 100%;
        box-sizing: border-box;
    }

        .auth-field input.no-icon {
            padding-right: 0.9rem;
        }

        .auth-field input:focus {
            outline: none;
            border-color: var(--accent);
            background: #fff;
        }

/* Şifre göster/gizle butonu */
.pw-toggle {
    position: absolute;
    right: 0.65rem;
    bottom: 0.6rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    color: #bbb;
    transition: color 0.2s;
    line-height: 1;
}

    .pw-toggle:hover {
        color: var(--accent);
    }

    .pw-toggle svg {
        width: 17px;
        height: 17px;
        stroke: currentColor;
        fill: none;
        display: block;
    }

/* Şifre güç barları */
.pw-strength {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.pw-bar {
    flex: 1;
    height: 3px;
    background: #e8e8e8;
    border-radius: 2px;
    transition: background 0.3s;
}

    .pw-bar.weak {
        background: var(--danger);
    }

    .pw-bar.medium {
        background: #e6a817;
    }

    .pw-bar.strong {
        background: #2eaa6e;
    }

/* ── Hata kutusu ── */
.auth-alert {
    background: var(--danger-bg);
    border-left: 3px solid var(--danger);
    padding: 0.7rem 0.95rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--danger);
}

    .auth-alert ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .auth-alert li {
        margin: 0;
    }

/* Field-level hata */
.auth-field-error {
    font-size: 0.78rem;
    color: var(--danger);
    margin-top: 0.28rem;
}

/* ── Beni hatırla + şifremi unuttum satırı ── */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.85rem;
    color: #888;
    cursor: pointer;
    user-select: none;
}

    .auth-check input[type="checkbox"] {
        accent-color: var(--accent);
        width: 14px;
        height: 14px;
        cursor: pointer;
    }

/* ── Butonlar ── */
.auth-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 0.81rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
    font-family: inherit;
    border-radius: 0;
    margin-top: 0.15rem;
}

    .auth-btn:hover {
        background: var(--accent-dark);
        transform: translateY(-1px);
    }

.auth-btn-outline {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    font-size: 0.81rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.2s;
    font-family: inherit;
}

    .auth-btn-outline:hover {
        background: var(--accent);
        color: #fff;
        text-decoration: none;
        transform: translateY(-1px);
    }

.auth-btn-solid {
    display: inline-block;
    padding: 0.72rem 1.8rem;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 0.81rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
    font-family: inherit;
}

    .auth-btn-solid:hover {
        background: var(--accent-dark);
        color: #fff;
        text-decoration: none;
        transform: translateY(-1px);
    }

/* ── Alt link satırı ── */
.auth-foot {
    text-align: center;
    margin-top: 1.6rem;
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 1.5rem;
    border-top: 1px solid var(--bg-soft);
}

    .auth-foot span {
        margin-right: 0.3rem;
    }

.auth-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
}

    .auth-link:hover {
        text-decoration: underline;
    }

/* ── Bildirim kartları (RegisterDone, VerifyOk, ForgotDone vb.) ── */
.auth-card.is-notice {
    text-align: center;
}

.auth-notice-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5ead6, #eedfc0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem;
    animation: authPopIn 0.5s 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

    .auth-notice-icon.is-error {
        background: #fdf0f0;
    }

    .auth-notice-icon svg {
        width: 30px;
        height: 30px;
        stroke: var(--accent-dark);
        fill: none;
    }

    .auth-notice-icon.is-error svg {
        stroke: var(--danger);
    }

    /* Çizilen tik animasyonu */
    .auth-notice-icon svg.draw-check {
        stroke-dasharray: 60;
        stroke-dashoffset: 60;
        animation: authDrawCheck 0.5s 0.8s ease forwards;
    }

.auth-notice-text {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 0.5rem;
}

.auth-notice-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.auth-notice-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.8rem;
}

/* ── Animasyonlar ── */
@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authPopIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes authDrawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .auth-card {
        padding: 2.4rem 1.4rem;
    }

    .auth-head h1 {
        font-size: 1.5rem;
    }
}
