/* Custom Authentication Page Styles - Clear IFSU Background */

/* Override AdminLTE auth page background */
.login-page,
.register-page {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.8), rgba(80, 227, 194, 0.8)), 
                url('../ifsu.jpg') center center fixed !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    position: relative;
}

/* Ensure the background image is not blurred */
.login-page::before,
.register-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../ifsu.jpg') center center fixed;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -2;
    filter: none !important; /* Remove any blur effects */
}

/* Gradient overlay for better readability */
.login-page::after,
.register-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.7), rgba(80, 227, 194, 0.7));
    z-index: -1;
}

/* Enhanced login/register box styling */
.login-box,
.register-box {
    width: 400px;
    margin: 5% auto;
    position: relative;
    z-index: 10;
}

.card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: none !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #4a90e2, #50e3c2) !important;
    color: white !important;
    border: none !important;
    text-align: center;
    padding: 20px;
    border-radius: 15px 15px 0 0 !important;
}

.card-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-body {
    padding: 30px;
    background: rgba(255, 255, 255, 0.98);
}

/* Enhanced form styling */
.input-group {
    margin-bottom: 20px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
    background: white;
}

.input-group-text {
    background: linear-gradient(135deg, #4a90e2, #50e3c2);
    border: none;
    color: white;
    border-radius: 0 10px 10px 0;
    padding: 12px 15px;
}

/* Enhanced button styling */
.btn-primary {
    background: linear-gradient(135deg, #4a90e2, #50e3c2) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4) !important;
    background: linear-gradient(135deg, #357abd, #45d4b8) !important;
}

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

/* Checkbox styling */
.icheck-primary input[type="checkbox"]:checked + label::before {
    background-color: #4a90e2;
    border-color: #4a90e2;
}

/* Link styling */
.card-footer a,
.auth-footer a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-footer a:hover,
.auth-footer a:hover {
    color: #357abd;
    text-decoration: underline;
}

/* Footer styling */
.card-footer {
    background: rgba(248, 249, 250, 0.8);
    border: none;
    text-align: center;
    padding: 20px;
    border-radius: 0 0 15px 15px;
}

/* Responsive design */
@media (max-width: 768px) {
    .login-box,
    .register-box {
        width: 90%;
        margin: 10px auto;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .card-header {
        padding: 15px;
    }
    
    .card-header h1 {
        font-size: 20px;
    }
}

/* Animation for form elements */
.form-control,
.btn {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation for buttons */
.btn-primary:disabled {
    background: #6c757d !important;
    cursor: not-allowed;
}

/* Error message styling */
.invalid-feedback {
    color: #dc3545;
    font-weight: 500;
    font-size: 14px;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Success message styling */
.alert-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

/* IFSU Logo enhancement if present */
.login-logo img,
.register-logo img {
    max-width: 80px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Additional enhancements for better visibility */
.login-box-msg,
.register-box-msg {
    color: #495057;
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
}

/* Ensure all text is readable over the background */
body.login-page,
body.register-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Remove any default blur effects that might be applied */
* {
    -webkit-filter: none !important;
    filter: none !important;
}

/* Ensure the IFSU image is crystal clear */
.login-page,
.register-page {
    -webkit-filter: none !important;
    filter: none !important;
}
