/* Admin Portal Fixes */

/* Fix horizontal scrolling issues */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.admin-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-body .main-content {
    flex: 1 0 auto;
}

.admin-body .footer {
    flex-shrink: 0;
}

/* Container fixes to prevent overflow (admin content only)
   Note: keep the shared header/footer using the main site .container styles */
.admin-body .main-content .container {
    width: 100%;
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Admin login container fixes */
.admin-login-container {
    width: 100%;
    max-width: 500px;
    padding: 0 15px;
    box-sizing: border-box;
    margin: 2rem auto 4rem;
}

.admin-login-card {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Form control fixes */
.form-control, .btn, .input-group {
    max-width: 100%;
}

.form-group {
    width: 100%;
}

/* Input group fix for password toggle */
.input-group {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

/* Logo sizing is controlled by the main site header styles (css/styles.css).
   Avoid overriding it here to keep navbar size consistent across pages. */

/* Footer: use the main site footer styles (css/styles.css) to keep it
   identical to the homepage across desktop/mobile. */

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .admin-login-container {
        padding: 0 10px;
    }
    
    .admin-login-card {
        padding: 1.5rem;
    }
}

/* Fix for duplicate year spans */
.year {
    display: inline;
}