/* Common styles for login and maintenance pages */

/* Hide the menu and header elements from base.html */
#sidebar-wrapper, 
#menu-toggle, 
.navbar, 
#page-content-wrapper > .container-fluid > h1,
#page-content-wrapper > .container-fluid > p {
    display: none !important;
}

#wrapper {
    padding-left: 0 !important;
}

#page-content-wrapper {
    width: 100%;
    position: absolute;
    padding: 0;
}

.container-fluid {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100vh;
}

body {
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Background styling */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/FinalSlide_MainBackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Card container styling */
.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.content-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.card-header {
    text-align: center;
    margin-bottom: 35px;
}

.card-header h2 {
    color: #3A6EA5;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 32px;
}

.card-header img.logo {
    max-width: 220px;
    margin-bottom: 25px;
}

.card-body {
    text-align: center;
    margin-bottom: 20px;
}

/* Form styling */
.form-control {
    height: 45px;
    border: none;
    border-bottom: 2px solid #e1e1e1;
    border-radius: 0;
    box-shadow: none;
    font-size: 16px;
    padding-left: 10px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #3A6EA5;
    box-shadow: none;
}

.form-control::placeholder {
    color: #aaa;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    max-width: 100%;
    width: 100%;
}

.btn-primary-action {
    background-color: #3A6EA5;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.btn-primary-action:hover {
    background-color: #2c5987;
    color: white;
}

.card-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.link-secondary {
    color: #3A6EA5;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-secondary:hover {
    color: #2c5987;
    text-decoration: underline;
}

/* Maintenance specific styles */
.maintenance-card {
    max-width: 900px;
    text-align: center;
}

.maintenance-header h2 {
    font-size: 42px;
}

.maintenance-image {
    width: 100%;
    max-width: 450px;
    margin: 25px auto;
    display: block;
}

.maintenance-dates {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 20px;
    margin: 30px 0;
    font-size: 22px;
    color: #3A6EA5;
    font-weight: 500;
}

.maintenance-message {
    font-size: 20px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.maintenance-contact {
    margin-top: 30px;
    padding: 20px;
    background-color: #e9f0f7;
    border-radius: 5px;
}

.maintenance-contact p {
    margin-bottom: 8px;
    font-size: 20px;
}

/* Login specific styles */
.login-card {
    max-width: 450px;
}

.login-form {
    width: 100%;
}

.login-form .form-group {
    margin-bottom: 20px;
    width: 100%;
}

/* Password input group styling */
.login-form .input-group {
    display: flex;
    align-items: center;
    width: 100%;
}

.login-form .input-group .form-control {
    flex: 1;
    height: 45px;
    border: none;
    border-bottom: 2px solid #e1e1e1;
    border-radius: 0;
    box-shadow: none;
    font-size: 16px;
    padding-left: 10px;
    transition: all 0.3s ease;
    border-right: none;
}

.login-form .input-group .form-control:focus {
    border-color: #3A6EA5;
    box-shadow: none;
}

.login-form .input-group-btn {
    display: flex;
    align-items: center;
}

.login-form .input-group-btn .btn {
    height: 45px;
    border: none;
    border-bottom: 2px solid #e1e1e1;
    border-radius: 0;
    background: transparent;
    color: #aaa;
    padding: 0 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.login-form .input-group-btn .btn:hover {
    color: #3A6EA5;
    background: transparent;
    border-bottom-color: #3A6EA5;
}

.login-form .input-group-btn .btn:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
    border-bottom-color: #3A6EA5;
}

/* Form error styling */
.login-form .alert {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
}

.login-form .alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.login-form .form-group.has-error .form-control {
    border-bottom-color: #dc3545;
}

.login-form .form-group.has-error .form-control:focus {
    border-bottom-color: #dc3545;
}

.login-form .help-block {
    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
    color: #dc3545;
    font-size: 12px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .content-card {
        padding: 25px;
        margin: 0 15px;
    }
    
    .card-header h2 {
        font-size: 28px;
    }
    
    .maintenance-header h2 {
        font-size: 32px;
    }
    
    .maintenance-dates {
        font-size: 18px;
    }
    
    .maintenance-message,
    .maintenance-contact p {
        font-size: 16px;
    }
}