/* Page styles for login.html (moved out of the template's inline <style> block, 2026-09) */
:root {
    --color-bg: #eae5de;
    --color-surface: #ffffff;
    --color-border: #ddd9d3;
    --color-text-primary: #1a1614;
    --color-text-secondary: #6b6560;
    --color-text-tertiary: #8a8480;
    --color-accent: #d4522a;
    --color-accent-hover: #b8431f;
    --color-accent-light: #fff4f0;
    --color-success: #2d7a4f;
    --color-error: #dc2626;
    --color-error-light: #fee2e2;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container { width: 100%; max-width: 420px; }

.login-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-header { text-align: center; margin-bottom: 32px; }

.login-logo-img {
    max-width: 160px;
    height: auto;
    margin-bottom: 16px;
}

.login-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text-primary);
    margin-top: 24px;
}

.error-message {
    background: var(--color-error-light);
    border: 1px solid var(--color-error);
    color: var(--color-error);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.error-message ul { list-style: none; margin: 0; padding: 0; }

.success-message {
    background: #e8f5ed;
    border: 1px solid #2d7a4f;
    color: #2d7a4f;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    color: var(--color-text-primary);
    background: var(--color-surface);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-input.error { border-color: var(--color-error); }

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input { width: 18px; height: 18px; accent-color: var(--color-accent); }
.remember-me span { font-size: 14px; color: var(--color-text-secondary); }

.forgot-password {
    font-size: 14px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

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

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary { background: var(--color-accent); color: white; }

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-microsoft { background: #2f2f2f; color: white; margin-top: 12px; }

.btn-microsoft:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-microsoft svg { width: 20px; height: 20px; }

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--color-text-tertiary);
    font-size: 13px;
}

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

.divider span { padding: 0 16px; text-transform: uppercase; letter-spacing: 0.05em; }

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.login-footer p { font-size: 14px; color: var(--color-text-tertiary); }
.login-footer a { color: var(--color-accent); text-decoration: none; font-weight: 600; }
.login-footer a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .login-card { padding: 24px; }
    .login-logo-img { max-width: 120px; }
    .form-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}
