/* Zekiya Platform - Ana CSS */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Scrollbar gizle — tüm overflow:auto/scroll elemanlarda ince tarayıcı scrollbar'ı gizle */
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

/* M10 audit fix — Global a11y:
   - :focus-visible: klavye kullanıcısı için görünür focus ring (WCAG 2.4.7).
   - prefers-reduced-motion: vestibular bozukluğu olan kullanıcı animasyon istemiyorsa
     transition/animation'ları devre dışı bırak (WCAG 2.3.3). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary, #0ea5e9);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

:root {
    --primary:      #0ea5e9;
    --primary-dark: #0284c7;
    --success:      #22C55E;
    --danger:       #EF4444;
    --warning:      #F59E0B;
    --text:         #1E1E2E;
    --text-muted:   #6B7280;
    --bg:           #F8F9FF;
    --white:        #FFFFFF;
    --border:       #E5E7EB;
    --radius:       12px;
    --shadow:       0 4px 24px rgba(108,99,255,.10);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ---- Brand Identity ---- */
.brand-can { color: #0f172a; }
.brand-a   { color: #06b6d4; }
.brand-i   { color: #7c3aed; }
.brand-suffix { color: #9ca3af; font-size: .7em; font-weight: 500; margin-left: 4px; vertical-align: middle; }

/* ---- Auth Sayfaları ---- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #6C63FF15 0%, #F8F9FF 60%);
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo .logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.auth-logo .logo-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* ---- Form ---- */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text);
    background: var(--white);
    transition: border-color .2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,.12);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

/* ---- Password göster/gizle toggle ---- */
.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 44px; }
.pw-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--text-muted, #6B7280);
    cursor: pointer;
    border-radius: 6px;
    padding: 0;
    transition: background .15s, color .15s;
}
.pw-toggle:hover { background: rgba(0,0,0,.05); color: var(--primary); }
.pw-toggle:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.pw-toggle svg { width: 18px; height: 18px; pointer-events: none; }

.invalid-feedback {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
}

/* ---- Butonlar ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .2s, transform .1s, box-shadow .2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:active { transform: scale(.98); }

.btn-primary {
    background: var(--primary);
    color: var(--white);
    width: 100%;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover { background: rgba(108,99,255,.08); }

/* ---- Alert ---- */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-danger  { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.alert-success { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
.alert-warning { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.alert-info    { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }

/* ---- Auth Alt Link ---- */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

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

/* ---- Divider ---- */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ---- Şifre Gücü ---- */
.password-strength {
    height: 4px;
    border-radius: 4px;
    background: var(--border);
    margin-top: 6px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    border-radius: 4px;
    transition: width .3s, background .3s;
    width: 0;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; }
}

/* ---- Genel Mobil Touch Hedefleri ---- */
@media (max-width: 768px) {
    .btn,
    .btn-primary,
    .btn-outline,
    .btn-white-sm { min-height: 44px; }
    input.form-control,
    textarea.form-control,
    select.form-control { font-size: 16px; min-height: 44px; } /* iOS zoom-on-focus engelleme */
    .auth-card .form-control { font-size: 16px; }
}
