/* ========================================================
   AUTH — Login / Şifre sayfaları stilleri (Kural 51)
   Prefix: .au-*
   ======================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body.au-body {
    font-family: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 50%, #1e4070 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Kart */
.au-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    padding: 44px 40px 36px;
    width: 400px;
    max-width: 96vw;
}

/* Logo / başlık */
.au-logo {
    text-align: center;
    margin-bottom: 28px;
}
.au-logo img {
    height: 72px;
    object-fit: contain;
}
.au-logo .au-brand {
    font-size: 20px;
    font-weight: 700;
    color: #1a1e28;
    margin-top: 10px;
    letter-spacing: 0.5px;
}
.au-logo .au-tagline {
    font-size: 11px;
    color: #7a8090;
    margin-top: 2px;
}

/* Dil seçici */
.au-lang-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}
.au-lang-btn {
    font-size: 11px;
    color: #7a8090;
    background: none;
    border: 1px solid #d0d3d9;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    transition: all .15s;
}
.au-lang-btn:hover,
.au-lang-btn.active {
    color: #2c5282;
    border-color: #2c5282;
    background: #eaf2ff;
}

/* Form grupları */
.au-form-group {
    margin-bottom: 16px;
}
.au-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #4a5060;
    margin-bottom: 5px;
}
.au-input-wrap {
    position: relative;
}
.au-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    border: 1px solid #d0d3d9;
    border-radius: 6px;
    background: #f9fafb;
    color: #1a1e28;
    transition: border-color .15s, background .15s;
    outline: none;
}
.au-input:focus {
    border-color: #3a7bd5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(58,123,213,0.12);
}
.au-input.au-error-field {
    border-color: #b8373a;
    background: #fff5f5;
}

/* Şifre göster/gizle butonu */
.au-eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #7a8090;
    padding: 4px;
    line-height: 1;
}
.au-eye-btn:hover { color: #3a7bd5; }

/* Hata mesajı (field seviyesi) */
.au-field-error {
    font-size: 11px;
    color: #b8373a;
    margin-top: 4px;
}

/* Genel hata kartı */
.au-alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.au-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.au-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.au-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Ekstra satır (beni hatırla + şifremi unuttum) */
.au-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.au-check-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4a5060;
    cursor: pointer;
}
.au-check-label input { cursor: pointer; }
.au-forgot {
    font-size: 12px;
    color: #3a7bd5;
    text-decoration: none;
}
.au-forgot:hover { text-decoration: underline; }

/* Submit butonu */
.au-btn-submit {
    width: 100%;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    background: linear-gradient(135deg, #3a7bd5, #2c62b0);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity .15s, box-shadow .15s;
    letter-spacing: 0.3px;
}
.au-btn-submit:hover { opacity: .92; box-shadow: 0 4px 12px rgba(58,123,213,0.3); }
.au-btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Alt bilgi */
.au-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 11px;
    color: #7a8090;
}
.au-footer a { color: #3a7bd5; text-decoration: none; }
.au-footer a:hover { text-decoration: underline; }

/* Geri linki */
.au-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #3a7bd5;
    text-decoration: none;
    margin-bottom: 16px;
}
.au-back:hover { text-decoration: underline; }

/* RTL desteği */
[dir="rtl"] .au-eye-btn {
    right: auto;
    left: 10px;
}
[dir="rtl"] .au-back { flex-direction: row-reverse; }

/* ── Eksik yardımcı sınıflar ─────────────────────── */

/* Kart sarmalayıcı */
.au-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Logo başlık/alt başlık */
.au-logo-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1e28;
    margin-top: 10px;
    letter-spacing: 0.5px;
}
.au-logo-sub {
    font-size: 11px;
    color: #7a8090;
    margin-top: 2px;
}
.au-logo-icon {
    font-size: 48px;
    color: #3a7bd5;
}

/* Uyarı (warning) alert tipi */
.au-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* Form başlık / açıklama */
.au-form-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1e28;
    margin-bottom: 6px;
}
.au-form-desc {
    font-size: 12px;
    color: #7a8090;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* Satır içi hizalama (beni hatırla + şifremi unuttum) */
.au-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
.au-form-row-between { justify-content: space-between; }

/* Checkbox label */
.au-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4a5060;
    cursor: pointer;
}
.au-checkbox { cursor: pointer; }

/* Genel link */
.au-link {
    font-size: 12px;
    color: #3a7bd5;
    text-decoration: none;
}
.au-link:hover { text-decoration: underline; }
.au-link-sm { font-size: 11px; }

/* Alt linkler alanı */
.au-footer-links {
    text-align: center;
    margin-top: 18px;
}

/* Outline buton varyantı */
.au-btn-outline {
    background: transparent;
    border: 2px solid #3a7bd5;
    color: #3a7bd5;
}
.au-btn-outline:hover { background: #eaf2ff; opacity: 1; }

/* Input içine sağ padding (göz butonu varken) */
.au-input-wrap .au-input { padding-right: 38px; }
