/* Auth page styles — extracted from user-pages/auth/login.html */

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

:root {
    --surface: #F8FAFC;
    --surface-container: #FFFFFF;
    --primary: #1E40AF;
    --primary-hover: #1D4ED8;
    --secondary: #2563EB;
    --border: #CBD5E1;
    --border-focus: #2563EB;
    --focus-halo: #DBEAFE;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-placeholder: #94A3B8;
    --error: #EF4444;
    --error-bg: #FEF2F2;
    --error-text: #991B1B;
    --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
    --shadow-elevated: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--surface);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.login-card {
    background: var(--surface-container);
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    padding: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.school-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.login-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 34px;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--text-secondary);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: var(--text-primary);
}

.form-control {
    height: 42px;
    padding: 0 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--text-primary);
    background: var(--surface-container);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    transition: all 0.15s ease;
}

.form-control::placeholder {
    color: var(--text-placeholder);
}

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

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

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid var(--border);
    background: var(--surface-container);
    cursor: pointer;
    transition: all 0.15s ease;
}

.form-check-input:checked {
    background: var(--secondary);
    border-color: var(--secondary);
}

.form-check-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--text-secondary);
    cursor: pointer;
}

.invalid-feedback {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: var(--error-text);
    margin-top: 0.25rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-danger {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error);
}

.btn {
    height: 40px;
    padding: 0 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-link {
    background: none;
    color: var(--secondary);
    padding: 0;
    height: auto;
    font-size: 14px;
    font-weight: 400;
}

.btn-link:hover {
    text-decoration: underline;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

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

.login-footer p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .login-card {
        padding: 1.5rem;
    }

    .login-title {
        font-size: 22px;
        line-height: 30px;
    }
}
