/* auth.css — login / register / forgot / login_2fa ortak stilleri */
.auth-wrap {
    min-height: calc(100vh - 80px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; background: var(--bg);
}
.auth-card {
    width: 100%; max-width: 420px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px; padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
[data-theme="dark"] .auth-card { box-shadow: 0 10px 40px rgba(0,0,0,0.3); }

.auth-header { text-align: center; margin-bottom: 25px; }
.auth-logo { height: 40px; margin-bottom: 15px; }
.auth-title { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.auth-subtitle { color: var(--muted); font-size: 14px; }

.auth-alert { padding: 12px; border-radius: 10px; font-size: 13px; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.auth-alert-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #ef4444; }
.auth-alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: #22c55e; }
.auth-alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); color: #3b82f6; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.input-wrap { position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.auth-input {
    width: 100%; padding: 12px 14px 12px 40px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text); font-size: 14px; outline: none; transition: 0.2s;
}
.auth-input:focus {
    border-color: var(--drawest-accent);
    box-shadow: 0 0 0 3px var(--drawest-accent-soft, color-mix(in srgb, var(--drawest-accent) 18%, transparent));
}
.auth-input-plain { padding-left: 14px; }
.pass-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted); cursor: pointer; }

.captcha-row { display: flex; gap: 10px; }
.captcha-badge {
    background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 16px; font-weight: bold; font-size: 15px; color: var(--text);
    display: flex; align-items: center; justify-content: center;
}
.captcha-row .auth-input { padding-left: 14px; }

.btn-auth {
    width: 100%; padding: 12px; background: var(--drawest-accent); color: #fff;
    border: none; border-radius: 10px; font-weight: 600; font-size: 15px;
    transition: 0.2s; cursor: pointer;
}
a.btn-auth { display: block; text-align: center; text-decoration: none; }
.btn-auth:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-auth:disabled { opacity: 0.7; cursor: not-allowed; }

.auth-divider { text-align: center; margin: 20px 0; color: var(--muted); font-size: 13px; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: calc(50% - 20px); height: 1px; background: var(--border); }
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }

.auth-footer { text-align: center; font-size: 13px; color: var(--muted); }
.auth-link { color: var(--drawest-accent); text-decoration: none; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }
.auth-link-btn { background: none; border: none; padding: 0; color: var(--drawest-accent); font-size: 13px; font-weight: 600; cursor: pointer; }
.auth-link-btn:hover { text-decoration: underline; }

@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-5px)} 40%,80%{transform:translateX(5px)} }
.shake { animation: shake .4s; }

@media (max-width: 767px) {
    /* iOS Safari 16px altındaki alanlara odaklanınca yakınlaştırır */
    .auth-input { font-size: 16px; }
}
@media (max-width: 480px) {
    .auth-card { padding: 30px 20px; border-radius: 16px; border: none; box-shadow: none; background: transparent; }
    .auth-wrap { background: var(--bg-elevated); padding: 0; align-items: flex-start; }
}
