/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Arka plan */
.auth-bg {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #38bdf8 0%, #1d4ed8 40%, #0f172a 100%);
    color: #0f172a;
}

/* Ortalayıcı wrapper */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

/* Ana kart */
.auth-card {
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.6);
    backdrop-filter: blur(18px);
}

/* Sol panel */
.auth-left {
    padding: 32px 32px 36px;
    background: radial-gradient(circle at top left, #60a5fa 0%, #2563eb 45%, #1d4ed8 100%);
    color: #eff6ff;
    position: relative;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.24);
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.auth-left-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: .02em;
}

.auth-left-text {
    margin-top: 10px;
    font-size: 14px;
    max-width: 300px;
    opacity: 0.95;
}

/* Özellik listesi */
.auth-benefits {
    list-style: none;
    margin-top: 22px;
    font-size: 13px;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.auth-benefits li::before {
    content: "•";
    font-size: 18px;
    line-height: 1;
}

/* Küçük istatistikler */
.auth-mini-stats {
    display: flex;
    gap: 16px;
    margin-top: 28px;
}

.auth-stat {
    flex: 1;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.26);
    border: 1px solid rgba(191, 219, 254, 0.4);
}

.auth-stat-value {
    display: block;
    font-weight: 700;
    font-size: 16px;
}

.auth-stat-label {
    display: block;
    font-size: 11px;
    opacity: 0.85;
}

/* Sağ panel */
.auth-right {
    padding: 30px 28px 32px;
    background: rgba(15, 23, 42, 0.96);
    color: #e5e7eb;
}

.auth-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
}

.auth-title {
    font-size: 20px;
    font-weight: 700;
}

.auth-subtitle {
    margin-top: 2px;
    font-size: 13px;
    color: #9ca3af;
}

/* Uyarılar */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 14px;
}

.auth-alert-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.auth-alert-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.8);
    color: #fecaca;
}

.auth-alert-error .auth-alert-icon {
    background: #ef4444;
    color: #fef2f2;
}

/* Form */
.auth-form {
    margin-top: 6px;
}

.auth-field {
    margin-bottom: 14px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #e5e7eb;
}

.auth-field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #4b5563;
    background: rgba(15, 23, 42, 0.9);
    color: #f9fafb;
    font-size: 14px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .08s ease;
}

.auth-field input::placeholder {
    color: #6b7280;
}

.auth-field input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.9);
    transform: translateY(-1px);
}

/* Karanlık tema input görünürlüğü */
.auth-field input {
    background: #020617;          /* koyu lacivert / siyah */
    border: 1px solid #1e293b;
    color: #f9fafb;               /* yazı beyaz */
}

.auth-field input::placeholder {
    color: #9ca3af;               /* placeholder gri */
}

/* Label yazıları siyah olsun */
.auth-modal-content .auth-field label {
    color: #0f172a;   /* koyu siyaha yakın */
}

/* Inputlar açık zemin, siyah yazı */
.auth-modal-content .auth-field input {
    background: #f9fafb;        /* açık gri/beyaz */
    border: 1px solid #d1d5db;  /* açık gri kenar */
    color: #111827;             /* yazı koyu */
}

/* Placeholder da gri görünsün */
.auth-modal-content .auth-field input::placeholder {
    color: #6b7280;
}


/* Alt satır */
.auth-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 12px;
    font-size: 12px;
    color: #9ca3af;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.7;
}

.auth-remember input {
    accent-color: #3b82f6;
}

.auth-link {
    color: #60a5fa;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Buton */
.auth-btn-primary {
    width: 100%;
    margin-top: 6px;
    padding: 11px 16px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: #f9fafb;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.55);
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px rgba(37, 99, 235, 0.7);
    opacity: 0.97;
}

.auth-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.6);
}

/* Footer */
.auth-footer {
    margin-top: 18px;
    font-size: 11px;
    color: #cbd5f5;
    opacity: 0.9;
}

/* -------- Şifremi Unuttum Modal -------- */
.auth-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.auth-modal-hidden {
    display: none;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
}

.auth-modal-content {
    position: relative;
    z-index: 51;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 24px 28px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.auth-modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0f172a;
}

.auth-modal-text {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 18px;
}

.auth-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    color: #9ca3af;
}

.auth-modal-close:hover {
    color: #4b5563;
}

.auth-modal-message {
    margin-bottom: 14px;
}

.auth-alert-success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* -------- OTP (6 haneli kod) -------- */
.otp-wrapper {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.otp-input {
    width: 42px;
    height: 48px;
    text-align: center;
    font-size: 20px;
    border-radius: 10px;
    border: 1px solid #1e293b;
    background: #020617;
    color: #f9fafb;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .08s ease;
}

.otp-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.8);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .otp-input {
        width: 34px;
        height: 40px;
        font-size: 18px;
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .auth-card {
        max-width: 540px;
        grid-template-columns: 1fr;
    }

    .auth-left {
        display: none; /* mobile’da sadece form kalsın */
    }

    .auth-right {
        padding: 26px 22px 28px;
    }
}

/* 480px altı için mobil optimizasyon */
  @media (max-width: 480px) {
    .auth-wrapper {
        padding: 12px;
    }

    .auth-card {
        max-width: 100%;
        border-radius: 20px;
    }

    .auth-right {
        padding: 20px 18px 22px;
    }

    .auth-logo {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .auth-title {
        font-size: 17px;
    }

    .auth-subtitle {
        font-size: 11px;
    }

    .auth-field input {
        padding: 9px 10px;
        font-size: 13px;
    }

    .auth-btn-primary {
        padding: 10px 14px;
        font-size: 14px;
    }

    .auth-footer {
        font-size: 10px;
        text-align: center;
    }
}