/* ============================================================================
   LOGIN PAGE STYLES
   Purpose:
   Layout and styling for the login screen.
   All colours come from club_theme.css variables.
   ============================================================================ */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--ui-page-bg);
}

/* Top bar */
.top-bar {
    background: linear-gradient(135deg, #D5393B, #f57f7a); /* club colour – allowed exception */
    box-shadow: var(--ui-shadow-medium);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ui-text-inverse);
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Sub bar */
.sub-bar {
    background-color: #333; /* menu bar colour – allowed exception */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ui-text-inverse);
    font-size: 18px;
    font-weight: bold;
}

/* Login container */
.container {
    max-width: 120px;
    width: 100%;
    margin: 130px auto 10px;
    padding: 20px;
    border: 1px solid var(--ui-surface-border);
    border-radius: 5px;
    background-color: var(--ui-surface-bg);
    box-shadow: var(--ui-shadow-medium);
}

/* Login fields */
.login-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.login-field label {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--ui-text-primary);
}

.login-field input {
    padding: 10px;
    border: 1px solid var(--ui-surface-border);
    border-radius: 4px;
    font-size: 1em;
    background-color: #f9f9f9;
}

/* =====================================================
   Login Button (theme driven)
   ===================================================== */

.login-button {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;

    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: 1px solid var(--btn-primary-border);
    border-radius: 4px;

    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.login-button:hover {
    background-color: var(--btn-primary-bg-hover);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.login-button:disabled {
    background-color: var(--btn-primary-disabled-bg);
    color: var(--btn-primary-disabled-text);
    cursor: not-allowed;
    box-shadow: none;
}

/* Error message */
.error-message {
    color: #b00020;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

/* Facebook link */
.fb-link {
    display: block;
    margin-top: 10px;
    text-align: center;
    color: var(--btn-primary-bg);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.fb-link:hover {
    color: var(--btn-primary-bg-hover);
}
