/*
 * Sign-in pages: Admin/login.php, forgot-password.php, register.php - one stylesheet for the three.
 * Brand colours come from includes/theme_head.php (--color-primary...), loaded before this file.
 */
:root {
    --fb-blue: var(--color-primary, var(--color-primary));
    --fb-dark-blue: var(--color-primary-hover, var(--color-primary-hover));
    --fb-bg: #f0f2f5;
    --fb-text: #050505;
    --fb-muted: #65676b;
    --fb-card: #ffffff;
    --fb-border: #e5e7eb;
    --shadow: 0 1px 2px rgba(0,0,0,.05), 0 2px 6px rgba(0,0,0,.06);
    --badge-warning: #fff3cd;
    --badge-info: #d1ecf1;
    --badge-primary: #ccfbf1;
    --badge-success: #d4edda;
    --badge-danger: #f8d7da;
    --badge-secondary: #e2e3e5;

    /* Responsive Font Sizes */
    --base-font-size: 14px;
    --heading-1: 1.6rem;
    --heading-2: 1.5rem;
    --heading-3: 1.25rem;
    --heading-4: 1.1rem;
    --icon-size: 20px;
    --icon-large: 32px;
}

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

html {
    font-size: var(--base-font-size);
    height: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--fb-bg);
    color: var(--fb-text);
    font-size: 1rem;
    line-height: 1.5;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

h1 { font-size: var(--heading-1); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: var(--heading-2); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: var(--heading-3); font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: var(--heading-4); font-weight: 700; letter-spacing: -.01em; }

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--fb-card);
    border:1px solid var(--fb-border);
    border-radius:12px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

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

.auth-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--fb-blue) 0%, var(--fb-dark-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow);
}

.auth-logo i {
    font-size: 2.25rem;
    color: white;
}

.auth-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--fb-blue);
}

.auth-subtitle {
    color: var(--fb-muted);
    margin: 0;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--fb-text);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--fb-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--fb-blue);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

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

.btn-primary {
    background: var(--fb-blue);
    color: #fff;
}

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

.message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.message-error {
    background: var(--badge-danger);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-success {
    background: var(--badge-success);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-footer {
    text-align: center;
    color: var(--fb-muted);
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--fb-blue);
    text-decoration: none;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-card {
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .auth-card {
        padding: 1.25rem;
    }

    .auth-title {
        font-size: 1.375rem;
    }
}

