/* ============================================================================
   Sprint 27 - login.css (Mobile + Musteri Admin paleti uyumlu)
   Auth flow: ForgotPassword, ResetPassword, VerificationCodeSent kullanir
============================================================================ */

:root {
    --bg-primary: #F5F5F0;
    --bg-dark: #1A1A1A;
    --bg-dark-light: #1F1F1F;
    --bg-card: #FFFFFF;
    --accent: #D4A017;
    --accent-light: #E8C840;
    --accent-dark: #B8860B;
    --border-light: #EEECE5;
    --text-dark: #1A1A1A;
    --text-mid: #2D2D2D;
    --text-gray: #888888;
    --text-light: #CCCCCC;
    --danger: #B71C1C;
    --warning: #E65100;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-y: auto;
}

/* ===== LOGIN CONTAINER (form card) ===== */
.login-container {
    position: relative;
    margin: 60px auto 30px;
    background: var(--bg-card);
    padding: 40px 32px 32px;
    box-shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    width: 90%;
    max-width: 420px;
    text-align: center;
    line-height: 1.5;
    z-index: 10;
}

/* Üst altin serit */
.login-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right,
        var(--accent-dark) 0%,
        var(--accent-light) 25%,
        var(--accent) 50%,
        var(--accent-light) 75%,
        var(--accent-dark) 100%);
    border-radius: 16px 16px 0 0;
}

/* Form-container (alternative wide container) */
.form-container {
    max-width: 640px;
    margin: 40px auto;
    padding: 32px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

/* Baslik */
.login-container h2 {
    margin-bottom: 6px;
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Slogan/sub-title (auth sayfalarinda) */
.login-container .subtitle,
.login-container p.subtitle {
    color: var(--text-gray);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 24px;
    font-weight: 600;
}

/* Altin divider (h2 alti) */
.login-container h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    margin: 12px auto 18px;
    background: linear-gradient(to right, var(--accent-dark), var(--accent-light), var(--accent-dark));
}

/* ===== FORM GROUP ===== */
.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-gray);
    margin-bottom: 6px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.form-group input,
.login-container input[type="text"],
.login-container input[type="email"],
.login-container input[type="password"],
.login-container input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.login-container input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}

.form-group input::placeholder {
    color: var(--text-light);
}

/* ===== CAPTCHA ===== */
.captcha-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-group .captcha-code {
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    font-size: 18px;
    background: var(--bg-dark);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 10px 14px;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
}

.captcha-group input[type="text"] {
    flex: 1;
}

.countdown-text {
    font-size: 11px;
    color: var(--text-gray);
    text-align: center;
    letter-spacing: 0.5px;
}

.captcha-code {
    color: var(--accent);
}

/* ===== GIRIS BUTONU (siyah + altin) ===== */
.login-btn {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--accent);
    background: var(--bg-dark);
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.login-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 6px 18px rgba(212, 160, 23, 0.25);
}

/* Sifremi unuttum / Yeni uyelik linkleri */
.forgot-password,
.CustomersRegister {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
}

.forgot-password a,
.CustomersRegister a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.3px;
}

.forgot-password a:hover,
.CustomersRegister a:hover {
    color: var(--accent);
}

/* ===== UYARI / HATA / BASARI MESAJLARI ===== */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    border-left: 4px solid;
    text-align: left;
}

.alert-success {
    background: #F1F8F2;
    color: #2E7D32;
    border-left-color: #2E7D32;
}

.alert-danger {
    background: #FFF5F5;
    color: var(--danger);
    border-left-color: var(--danger);
}

.alert-warning {
    background: #FFF8E1;
    color: var(--warning);
    border-left-color: var(--warning);
}

.error-message,
.warning-message {
    color: var(--danger);
    font-size: 13px;
    margin-top: 10px;
    padding: 10px 14px;
    background: #FFF5F5;
    border-left: 4px solid var(--danger);
    border-radius: 8px;
    text-align: left;
}

.warning-message {
    color: var(--warning);
    background: #FFF8E1;
    border-left-color: var(--warning);
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 24px;
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 1px;
}

.footer b,
.footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.footer b:hover,
.footer a:hover {
    text-decoration: underline;
}

/* ===== ARKA PLAN ANIMASYONLU SEKILLER ===== */
.animated-background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.10) 0%, rgba(212, 160, 23, 0.02) 70%);
    animation: simpleFloat 6s ease-in-out infinite;
}

.circle:nth-child(1) {
    width: 220px;
    height: 220px;
    top: 8%;
    left: 22%;
}

.circle:nth-child(2) {
    width: 320px;
    height: 320px;
    top: 65%;
    left: 12%;
    animation-delay: 1s;
}

.circle:nth-child(3) {
    width: 260px;
    height: 260px;
    top: 38%;
    left: 62%;
    animation-delay: 2s;
}

.circle:nth-child(4) {
    width: 160px;
    height: 160px;
    top: 18%;
    left: 78%;
    animation-delay: 3s;
}

@keyframes simpleFloat {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-24px); }
    100% { transform: translateY(0); }
}

/* Legacy diger sekiller — saydam altin tonu */
.square,
.triangle,
.rounded-square,
.hexagon,
.wavy-circle,
.star {
    display: none; /* Sade premium look: sadece daireler kalsin */
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .login-container {
        margin: 30px auto 20px;
        padding: 30px 22px 24px;
        width: 92%;
    }
    .login-container h2 {
        font-size: 20px;
    }
    .captcha-group {
        flex-direction: column;
        align-items: stretch;
    }
}
