/* Login page styles */
.login-container {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.login-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

/* Left panel */
.login-info-panel {
    background-color: #10720B;
    color: #fff;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(16, 114, 11, 0.85), rgba(16, 114, 11, 0.85)), 
                url('../../images/4-845x650-1370181210.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
}

/* Remove or comment out the pattern overlay since we're using the photo */
/*
.login-info-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../images/pattern.png');
    opacity: 0.1;
}
*/

.login-info-content {
    position: relative;
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Change from center to flex-start to align to top */
    padding-top: 5rem; /* Increase top padding to push content higher */
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.library-logo {
    max-width: 100px;
    margin-bottom: 2rem;
}

.login-info-panel h2 {
    font-weight: 700;
    margin-bottom: 1.5rem; /* Increase bottom margin for better spacing */
    font-size: 2rem; /* Slightly larger for better visibility */
}

.login-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.feature-text p {
    margin-bottom: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Right panel */
.login-form-panel {
    padding: 0;
}

.login-form-wrapper {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.login-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.tab-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #777;
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.tab-item:hover {
    color: #333;
}

.tab-item.active {
    color: #10720B;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #10720B;
}

.login-form-container {
    flex-grow: 1;
}

.login-form {
    display: none;
    animation: fadeIn 0.5s ease;
}

.login-form.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-subtitle {
    color: #777;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.password-field {
    position: relative;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.25rem;
    z-index: 5;
}

.btn-toggle-password:hover {
    color: #666;
}

.forgot-link {
    color: #10720B;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #0b5508;
    text-decoration: underline;
}

.btn-login {
    background-color: #10720B;
    padding: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
    color: white;
}

.btn-login:hover {
    background-color: #0b5508;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 114, 11, 0.3);
    color: white;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

.login-footer a {
    color: #10720B;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Form controls styling */
.form-control:focus {
    border-color: #10720B;
    box-shadow: 0 0 0 0.25rem rgba(16, 114, 11, 0.25);
}

.form-check-input:checked {
    background-color: #10720B;
    border-color: #10720B;
}

.alert {
    padding: 0.75rem 1.25rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive styles */
@media (max-width: 991px) {
    .login-info-panel {
        display: none;
    }
    
    .login-card {
        max-width: 500px;
    }
}

@media (max-width: 767px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-form-wrapper {
        padding: 1.5rem;
    }
    
    .login-tabs {
        margin-bottom: 1.5rem;
    }
    
    .tab-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}