/* ===== Global Styles ===== */
:root {
    --primary: #1a365d;        /* Phronesis dark blue */
    --primary-light: #2c5282;  /* Lighter blue */
    --accent: #d69e2e;         /* Phronesis gold */
    --light-bg: #f8fafc;       /* Light background */
    --text: #2d3748;           /* Dark gray for text */
    --text-light: #718096;     /* Light gray for secondary text */
    --white: #ffffff;          /* Pure white */
    --border: #e2e8f0;         /* Border color */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-image: url('back.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-color: rgba(248, 250, 252, 0.9);
}

/* ===== Auth Containers ===== */
.auth-container, .login-container {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.auth-container::before, .login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

/* ===== Branding ===== */
.school-brand, .auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.school-logo, .auth-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.school-name, .auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.school-motto, .auth-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}

/* ===== Form Elements ===== */
.login-title, .auth-title {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    text-align: center;
    position: relative;
}

.login-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 0.5rem auto 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26, 54, 93, 0.1);
}

/* ===== Buttons ===== */
.btn-login, .btn-primary {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 1.25rem;
}

.btn-login:hover, .btn-primary:hover {
    background-color: var(--primary-light);
}

/* ===== Utilities ===== */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 0.5rem;
}

.forgot-password, .auth-links a {
    color: var(--primary);
    text-decoration: none;
}

.forgot-password:hover, .auth-links a:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: var(--text-light);
    font-size: 0.75rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
    margin: 0 0.5rem;
}

.create-account, .auth-links {
    text-align: center;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.create-account a, .auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.create-account a:hover, .auth-links a:hover {
    text-decoration: underline;
}

.footer, .auth-footer {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .auth-container, .login-container {
        padding: 1.5rem;
    }
    
    .school-name, .auth-title {
        font-size: 1.4rem;
    }
    
    .login-title, .auth-title {
        font-size: 1.2rem;
    }
}