/**
 * Auth pages (login / reset) — design-tokens.css ile birlikte yüklenir
 */
body.auth-page {
    background: linear-gradient(160deg, var(--ds-bg) 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ds-font);
    padding: var(--ds-space-5);
    color: var(--ds-text);
}

.login-container,
.reset-container {
    background: var(--ds-surface);
    border-radius: var(--ds-radius-lg);
    box-shadow: var(--ds-shadow-lg);
    overflow: hidden;
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--ds-border);
    animation: authFadeIn 0.4s var(--ds-ease);
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header,
.reset-header {
    background: var(--ds-surface);
    padding: 40px 36px 28px;
    text-align: center;
    border-bottom: 1px solid var(--ds-border);
}

.login-logo,
.reset-logo,
.reset-icon {
    width: 88px;
    height: 88px;
    background: var(--ds-surface);
    border-radius: var(--ds-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--ds-shadow-sm);
    border: 1px solid var(--ds-border);
}

.login-logo img,
.reset-logo img,
.reset-icon img {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
}

.login-logo i,
.reset-logo i,
.reset-icon i {
    font-size: 36px;
    color: var(--ds-primary);
}

.login-header h3,
.reset-header h3 {
    margin: 0 0 8px 0;
    font-weight: 700;
    font-size: 24px;
    color: var(--ds-text);
    letter-spacing: -0.02em;
}

.login-header p,
.reset-header p {
    margin: 0;
    font-size: var(--ds-fs-sm);
    color: var(--ds-text-muted);
}

.login-body,
.reset-body {
    padding: 32px 36px;
    background: var(--ds-surface);
}

.auth-page .form-group label {
    font-weight: 600;
    color: var(--ds-text-secondary);
    margin-bottom: 8px;
    font-size: var(--ds-fs-sm);
}

.auth-page .form-control {
    border: 1px solid var(--ds-border-strong);
    border-radius: var(--ds-radius-md);
    padding: 12px 14px;
    font-size: var(--ds-fs-sm);
    background: var(--ds-surface-muted);
    min-height: 46px;
}

.auth-page .form-control:focus {
    border-color: var(--ds-primary);
    box-shadow: 0 0 0 3px var(--ds-primary-soft);
    background: var(--ds-surface);
}

.auth-page .input-group-text {
    background: var(--ds-surface-muted);
    border: 1px solid var(--ds-border-strong);
    border-right: none;
    color: var(--ds-text-muted);
    border-radius: var(--ds-radius-md) 0 0 var(--ds-radius-md);
}

.auth-page .input-group .form-control {
    border-left: none;
    border-radius: 0 var(--ds-radius-md) var(--ds-radius-md) 0;
}

.auth-page .input-group-password .form-control {
    border-right: none;
    border-radius: 0;
}

.auth-page .input-group-password .btn-toggle-password {
    background: var(--ds-surface-muted);
    border: 1px solid var(--ds-border-strong);
    border-left: none;
    color: var(--ds-text-muted);
    border-radius: 0 var(--ds-radius-md) var(--ds-radius-md) 0;
    padding: 0 14px;
}

.auth-page .input-group-password .btn-toggle-password:hover {
    background: var(--ds-border);
    color: var(--ds-text-secondary);
}

.auth-page .input-group:focus-within .input-group-text,
.auth-page .input-group:focus-within .btn-toggle-password {
    background: var(--ds-surface);
    border-color: var(--ds-primary);
}

.btn-login,
.btn-reset {
    background: var(--ds-primary);
    border: none;
    border-radius: var(--ds-radius-md);
    padding: 13px;
    font-size: var(--ds-fs-md);
    font-weight: 600;
    color: var(--ds-text-on-primary);
    width: 100%;
    transition: background var(--ds-transition), box-shadow var(--ds-transition), transform var(--ds-transition);
    margin-top: 20px;
    box-shadow: var(--ds-shadow-sm);
}

.btn-login:hover,
.btn-reset:hover {
    background: var(--ds-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--ds-shadow-md);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 8px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: var(--ds-fs-sm);
    color: var(--ds-text-muted);
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.custom-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--ds-border-strong);
    border-radius: 5px;
    margin-right: 8px;
    position: relative;
    transition: all var(--ds-transition);
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--ds-primary);
    border-color: var(--ds-primary);
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;
    font-weight: bold;
}

.forgot-password {
    color: var(--ds-primary);
    text-decoration: none;
    font-size: var(--ds-fs-sm);
    font-weight: 500;
}

.forgot-password:hover {
    color: var(--ds-primary-hover);
    text-decoration: underline;
}

.auth-page .alert {
    border-radius: var(--ds-radius-md);
    margin-bottom: 16px;
    padding: 12px 16px;
    font-size: var(--ds-fs-sm);
}

.login-footer,
.reset-footer {
    text-align: center;
    padding: 16px;
    background: var(--ds-surface-muted);
    color: var(--ds-text-muted);
    font-size: var(--ds-fs-xs);
    border-top: 1px solid var(--ds-border);
}

.auth-page .user-info {
    background: var(--ds-primary-softer);
    border: 1px solid var(--ds-primary-soft);
    border-radius: var(--ds-radius-md);
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: var(--ds-fs-sm);
    color: var(--ds-text-secondary);
}

.loading { display: none; }
.loading.show { display: inline-block; }

.auth-page .modal-content {
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    box-shadow: var(--ds-shadow-lg);
}

.auth-page .modal-header {
    background: var(--ds-surface-muted);
    border-bottom: 1px solid var(--ds-border);
    padding: 20px 24px;
}

.auth-page .modal-title {
    color: var(--ds-text);
    font-weight: 700;
    font-size: var(--ds-fs-lg);
}

.auth-page .modal-title i {
    color: var(--ds-primary);
    margin-right: 8px;
}

.auth-page .modal-footer {
    background: var(--ds-surface-muted);
    border-top: 1px solid var(--ds-border);
}

.auth-page .modal-footer .btn-primary {
    background: var(--ds-primary);
    border: none;
}

.auth-page .modal-footer .btn-primary:hover {
    background: var(--ds-primary-hover);
}

@media (max-width: 576px) {
    .login-container,
    .reset-container {
        margin: 8px;
    }
    .login-body,
    .reset-body {
        padding: 24px 20px;
    }
    .login-header,
    .reset-header {
        padding: 32px 20px 20px;
    }
    .login-logo,
    .reset-logo {
        width: 72px;
        height: 72px;
    }
}
