/* ============================================================
   AUTH PAGES — Login & Register
============================================================ */

.auth-page {
    min-height: calc(100vh - var(--header-height, 60px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-page, #f9fafb);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.auth-card-wide { max-width: 480px; }

@media (max-width: 480px) {
    .auth-page { padding: 20px 14px; }
    .auth-card { padding: 24px 20px; }
}

/* ─────────── Header ─────────── */
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-icon {
    display: inline-block;
    font-size: 40px;
    margin-bottom: 8px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text, #111827);
    margin: 0 0 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--muted, #6b7280);
    margin: 0;
    line-height: 1.5;
}

/* ─────────── Form ─────────── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text, #111827);
}

.auth-hint {
    font-weight: 400;
    color: var(--muted, #6b7280);
    font-size: 12px;
}

.auth-input {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 10px;
    background: var(--bg, #fff);
    color: var(--text, #111827);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary, #f97316);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.auth-input.is-invalid {
    border-color: #dc2626;
    background: #fef2f2;
}

/* Password input wrapper (toggle butonu) */
.auth-input-pwd {
    position: relative;
}

.auth-input-pwd .auth-input { padding-right: 44px; }

.auth-pwd-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--muted, #6b7280);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.auth-pwd-toggle:hover {
    background: var(--bg-page, #f3f4f6);
    color: var(--text, #111827);
}

/* Field error */
.auth-field-error {
    font-size: 12px;
    color: #dc2626;
    min-height: 0;
    transition: min-height 0.15s;
}

.auth-field-error.is-visible {
    min-height: 16px;
}

/* Checkbox field */
.auth-field-check {
    flex-direction: row;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text, #374151);
    user-select: none;
}

.auth-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    cursor: pointer;
    accent-color: var(--primary, #f97316);
    flex-shrink: 0;
}

.auth-check a {
    color: var(--primary, #f97316);
    text-decoration: underline;
}

/* ─────────── Error Box ─────────── */
.auth-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    color: #991b1b;
    font-size: 14px;
}

.auth-error[hidden] { display: none; }
.auth-error svg { flex-shrink: 0; }

/* ─────────── Submit ─────────── */
.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: var(--primary, #f97316);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
}

.auth-submit:hover:not(:disabled) {
    background: var(--primary-dk, #ea580c);
}

.auth-submit:active:not(:disabled) {
    transform: translateY(1px);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-submit .auth-spinner {
    display: none;
    animation: auth-spin 0.8s linear infinite;
}

.auth-submit.is-loading .auth-submit-text { display: none; }
.auth-submit.is-loading .auth-spinner { display: inline-block; }

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

/* ─────────── Linkler ─────────── */
.auth-links {
    text-align: center;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--border, #e5e7eb);
}

.auth-links p {
    margin: 0;
    font-size: 14px;
    color: var(--muted, #6b7280);
}

.auth-links a {
    color: var(--primary, #f97316);
    text-decoration: none;
    font-weight: 600;
}

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

/* ============================================================
   AUTH — Forgot / Reset Password sayfaları
============================================================ */

/* Login formundaki "Şifremi unuttum" linki */
.auth-forgot-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--primary, #f97316);
    text-decoration: none;
    font-weight: 500;
}
.auth-forgot-link:hover { text-decoration: underline; }

/* Success message kutusu */
.auth-success {
    padding: 12px 14px;
    margin-bottom: 16px;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}
.auth-success a {
    color: #065f46;
    font-weight: 600;
    text-decoration: underline;
}
.auth-success[hidden] { display: none; }

.auth-field-hint {
    color: var(--muted, #6b7280);
    font-size: 11px;
    margin-top: 4px;
}
