/* Login Page Custom Styles */

/* Text colors */
.login-background {
    color: white;
}

.card {
    color: #333;
}

/* Card styling */
.card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Input field styling */
.form-control {
    border-radius: 4px;
    padding: 12px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #2a3d8f;
    box-shadow: 0 0 0 0.25rem rgba(42, 61, 143, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    transition: all 0.2s ease;
}

.form-control {
    border-left: none;
}

/* Focused state for input groups */
.input-group.focused .input-group-text {
    border-color: #2a3d8f;
    background-color: rgba(42, 61, 143, 0.05);
}

/* Validation styling */
.was-validated .form-control:valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Button styling */
.btn-primary {
    background-color: #2a3d8f;
    border-color: #2a3d8f;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e2d6b;
    border-color: #1e2d6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-link {
    color: #2a3d8f;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: #1e2d6b;
    text-decoration: underline;
}

/* Alert styling */
.alert-danger {
    border-left: 4px solid #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .rounded-start {
        border-radius: 0.375rem 0.375rem 0 0 !important;
    }
    
    .col-md-5 {
        padding: 2rem !important;
    }
}

/* Body and background styling */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Background gradient for the login page */
.login-background {
    background: linear-gradient(135deg, rgba(43,44,46,1) 0%, rgba(42,61,143,1) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

/* Animation for form elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease forwards;
}

/* Custom styling for the logo section */
.bg-light {
    background-color: #f8f9fa !important;
}

/* Add Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css");
