html {
    font-size: 14px;
}

body {
    margin: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    background-color: #f8f9fa;
}

/* ===== Identity/Authentication Pages ===== */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.auth-container > .row {
    width: 100%;
}

.auth-card {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.auth-card .form-floating > label {
    color: #64748b;
}

.auth-card .form-floating > .form-control:focus ~ label,
.auth-card .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #2563eb;
}

.auth-card .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 0.875rem;
    transition: all 0.15s ease;
}

.auth-card .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.auth-card .btn-primary {
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    background-color: #2563eb;
    border-color: #2563eb;
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.auth-card .alert {
    border: none;
    border-radius: 8px;
}

.text-primary {
    color: #2563eb !important;
}

/* ===== Mobile Optimisation ===== */

/* Reduce page heading size on mobile */
@media (max-width: 767.98px) {
    h1 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    /* Reduce stat card number size */
    .card-text.display-4,
    .card-text.display-5 {
        font-size: 2rem;
    }

    /* Reduce main content padding on small screens */
    main.p-3 {
        padding: 0.75rem !important;
    }

    /* Ensure charts adapt to screen width */
    .chart-container {
        height: 280px !important;
    }

    /* Make tables scroll horizontally */
    .table-responsive-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Compact table cells on mobile */
    .table th,
    .table td {
        padding: 0.35rem 0.5rem;
        font-size: 0.85rem;
    }

    /* Season filter full width on mobile */
    .col-md-4 .form-select {
        width: 100%;
    }

    /* Footer compact */
    .footer .container-fluid {
        font-size: 0.8rem;
    }
}
