/* Base styles */
:root {
    --primary-color: #003B73;
    --primary-dark: #002244;
    --primary-light: #dbeafe;
    --accent-color: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
}

/* Login Page Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #003B73;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.login-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
}

.login-left-column {
    flex: 1;
    background-color: #001F3F;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 15px 0 0 15px;
    position: relative;
}

.login-right-column {
    flex: 1;
    padding: 40px 30px;
}

.school-info {
    text-align: center;
    margin-top: 30px;
}

.school-info h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
}

.school-info p {
    font-size: 16px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.powered-by {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: #003B73;
}

.logo-section {
    text-align: center;
}

.logo-section img {
    max-width: 150px;
    max-height: 150px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-header {
    text-align: center;
    padding: 0 0 20px;
    border-bottom: none;
    background-color: transparent;
}

.card-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.card-header p {
    color: #7b8a8b;
    font-size: 14px;
    margin-bottom: 0;
}

.card-body {
    padding: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #5a5c69;
    font-size: 14px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #003B73;
    z-index: 10;
}

.input-with-icon {
    padding-left: 45px;
    border-radius: 50px;
    height: 50px;
    border: 1px solid #e3e6f0;
    font-size: 14px;
    transition: all 0.2s;
}

.input-with-icon:focus {
    border-color: #003B73;
    box-shadow: 0 0 0 0.25rem rgba(0, 59, 115, 0.25);
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #7b8a8b;
    cursor: pointer;
    z-index: 10;
}

.password-toggle:hover {
    color: #003B73;
}

.form-check-label {
    font-size: 14px;
    color: #7b8a8b;
}

.form-check-input:checked {
    background-color: #003B73;
    border-color: #003B73;
}

.btn-link {
    color: #003B73;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-link:hover {
    color: #002244;
    text-decoration: underline;
}

.btn-primary {
    background-color: #003B73;
    border-color: #003B73;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #002244;
    border-color: #002244;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 59, 115, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    font-size: 14px;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border-left: 4px solid #ffc107;
}

/* Nav Pills */
.nav-pills {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    background-color: #f8f9fc;
    padding: 0.25rem;
}

.nav-pills .nav-link {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: #7b8a8b;
    transition: all 0.2s ease;
    margin: 0.25rem;
    border: none;
    background: transparent;
}

.nav-pills .nav-link.active {
    background-color: white;
    color: #003B73;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Academic Period */
.academic-period {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
}

/* Footer */
.footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 20px;
}

.techmawu-footer {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 5px;
}

.techmawu-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.techmawu-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Loading state */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-border {
    margin-right: 8px;
    width: 1rem;
    height: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
    }
    
    .login-left-column {
        border-radius: 15px 15px 0 0;
        padding: 30px;
    }
    
    .login-right-column {
        padding: 30px;
    }
    
    .login-container {
        max-width: 450px;
    }
    
    .card-header h1 {
        font-size: 22px;
    }
    
    .btn-primary {
        padding: 10px 20px;
    }
    
    .nav-pills .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

.password-strength {
    margin-top: 5px;
    margin-bottom: 5px;
}

.password-strength-meter {
    height: 5px;
    width: 100%;
    background-color: #e9ecef;
    border-radius: 3px;
    position: relative;
}

.password-strength-meter.strength-weak {
    background-color: #ef4444;
    width: 25%;
}

.password-strength-meter.strength-medium {
    background-color: #f59e0b;
    width: 50%;
}

.password-strength-meter.strength-good {
    background-color: #3b82f6;
    width: 75%;
}

.password-strength-meter.strength-strong {
    background-color: #10b981;
    width: 100%;
}

.password-feedback {
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

/* Optional: Add some animation to make the modal appear smoother */
.modal.fade .modal-dialog-centered {
    transform: translate(0, -50px);
    transition: transform 0.3s ease-out;
}
.modal.show .modal-dialog-centered {
    transform: none;
}

.help-box {
    background-color: #f8f9fc;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    border-left: 4px solid #003B73;
}

.help-box h5 {
    font-size: 14px;
    font-weight: 600;
    color: #003B73;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.help-box h5 i {
    margin-right: 8px;
}

.help-box p {
    font-size: 12px;
    color: #858796;
    margin-bottom: 0;
}

/* Password match feedback styles */
.password-match-feedback {
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.text-success {
    color: #28a745;
}
.text-danger {
    color: #dc3545;
}
