/* ==========================================================================
   AUTH.CSS — Giris, kayit ve sifre sifirlama sayfalari
   ========================================================================== */


/* --------------------------------------------------------------------------
   GIRIS / KAYIT SAYFASI
   -------------------------------------------------------------------------- */

body.auth-page {
    background: radial-gradient(circle at top right, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
}

/* Sadece giris formunu kapsayan alan icin izolasyon */
.auth-main-wrapper,
.auth-main-wrapper * {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.auth-main-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    min-height: calc(100vh - 180px);
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 480px;
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(11, 61, 122, 0.1),
                0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Logo */
.auth-logo-box { margin-bottom: 36px; }
.auth-logo-box h2 {
    color: #0b3d7a;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    margin: 0;
}

/* Sekmeler */
.tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 32px;
    border-bottom: none;
}
.tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tab-btn:hover { color: #0b3d7a; }
.tab-btn.active {
    background: #ffffff;
    color: #0b3d7a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.tab-btn.active::after { display: none; }

/* Form Bolumleri */
.form-section { display: none; }
.form-section.active {
    display: block;
    animation: slideUpFade 0.5s ease forwards;
}

/* Input Gruplari */
.input-group {
    margin-bottom: 20px;
    text-align: left;
    position: relative;
}
.input-group label {
    display: block;
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.password-wrapper { position: relative; }

.auth-main-wrapper .form-input {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s ease;
    margin: 0;
}
.auth-main-wrapper .form-input::placeholder { color: #94a3b8; }
.auth-main-wrapper .form-input:focus {
    background: #ffffff;
    border-color: #0b3d7a;
    outline: none;
    box-shadow: 0 0 0 4px rgba(11, 61, 122, 0.1);
}

/* Sifre Goster/Gizle */
.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}
.toggle-password:hover { color: #0b3d7a; }

/* Form Opsiyonlari (Beni Hatirla / Sifremi Unuttum) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
}
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #475569;
    font-weight: 500;
}
.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0b3d7a;
    cursor: pointer;
    margin: 0;
}
.forgot-link {
    color: #0b3d7a;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}
.forgot-link:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* Gonder Butonu */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0b3d7a, #16529b);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(11, 61, 122, 0.25);
}
.btn-submit:hover {
    background: linear-gradient(135deg, #093161, #11427d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 61, 122, 0.35);
}
.btn-submit:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Geri Baglantisi */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}
.back-link:hover { color: #0b3d7a; }

/* Hata Mesaji */
.error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
    font-weight: 600;
}

/* Animasyon */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* --------------------------------------------------------------------------
   SIFRE SIFIRLAMA
   -------------------------------------------------------------------------- */

body.reset-page {
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    background: #f8fafc;
    margin: 0;
    padding: 0;
    color: #0f172a;
}

/* Reset password sayfası layout — form ortalama + sticky footer */
.reset-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    padding-top: 40px !important; /* base.css main { padding-top: 150px } override */
    min-height: 0;
    overflow-x: visible;
}

.reset-page .card {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    padding: 28px;
}

.reset-page h1 {
    font-size: 22px;
    margin: 0 0 12px;
    color: #1e3a8a;
}

.reset-page label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 12px 0 6px;
}

.reset-page input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.reset-page button {
    width: 100%;
    margin-top: 16px;
    padding: 12px 16px;
    border: none;
    border-radius: 999px;
    background: #1e3a8a;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.status {
    margin-top: 14px;
    font-size: 14px;
    color: #0f172a;
}
.status.error   { color: #b91c1c; }
.status.success { color: #166534; }
