/* Login Modal Styles */

/* Modal Content Container */
.login-modal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

/* Modal Header */
.login-modal .modal-header {
    background: linear-gradient(135deg, #0c45ab 0%, #1a5dc8 100%);
    border-radius: 0;
    border: none;
    padding: 25px 30px;
    position: relative;
}

.login-modal .modal-header-content {
    width: 100%;
    text-align: center;
}

.login-modal .modal-header-icon {
    font-size: 50px;
    color: #fff;
}

.login-modal .modal-title {
    color: #fff;
    font-weight: 600;
    font-size: 24px;
    margin-top: 10px;
}

.login-modal .modal-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 14px;
}

.login-modal .modal-close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #fff;
    opacity: 0.8;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.login-modal .modal-close-btn:hover {
    opacity: 1;
}

/* Modal Body */
.login-modal .modal-body {
    padding: 30px 35px;
}

/* Form Labels */
.login-modal .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.login-modal .form-label i {
    margin-right: 5px;
}

/* Form Inputs */
.login-modal .form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-modal .form-control:focus {
    border-color: #0c45ab;
    box-shadow: 0 0 0 3px rgba(12, 69, 171, 0.1);
    outline: none;
}

.login-modal .form-control::placeholder {
    color: #aaa;
}

/* Password Input Container */
.login-modal .password-container {
    position: relative;
    width: 100%;
}

.login-modal .password-container .form-control {
    padding-right: 45px;
}

.login-modal .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 20px;
    z-index: 10;
}

.login-modal .toggle-password:hover {
    color: #0c45ab;
}

/* Form Group */
.login-modal .form-group {
    margin-bottom: 20px;
}

/* Remember Me & Forgot Password Row */
.login-modal .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.login-modal .form-check {
    display: flex;
    align-items: center;
}

.login-modal .form-check-input {
    cursor: pointer;
    margin-right: 8px;
}

.login-modal .form-check-label {
    color: #666;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 0;
}

.login-modal .forgot-password-link {
    color: #0c45ab;
    font-size: 14px;
    text-decoration: none;
}

.login-modal .forgot-password-link:hover {
    text-decoration: underline;
}

/* Login Button */
.login-modal .login-btn {
    width: 100%;
    background: linear-gradient(135deg, #d40813 0%, #ff1a1a 100%);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.login-modal .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 8, 19, 0.3);
}

.login-modal .login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-modal .login-btn-text {
    display: inline;
}

.login-modal .login-spinner {
    display: none;
}

.login-modal .login-btn.loading .login-btn-text {
    display: none;
}

.login-modal .login-btn.loading .login-spinner {
    display: inline;
}

/* Error Alert */
.login-modal .login-error {
    display: none;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 10px 15px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.login-modal .login-error.show {
    display: block;
}

/* Modal Footer */
.login-modal .modal-footer {
    border-top: 1px solid #eee;
    padding: 20px 35px;
    justify-content: center;
    background: #f9f9f9;
}

.login-modal .modal-footer p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.login-modal .create-account-link {
    color: #0c45ab;
    font-weight: 600;
    text-decoration: none;
}

.login-modal .create-account-link:hover {
    text-decoration: underline;
}

/* Animation */
@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .login-modal .modal-body {
        padding: 20px;
    }
    
    .login-modal .modal-header {
        padding: 20px;
    }
    
    .login-modal .modal-footer {
        padding: 15px 20px;
    }
    
    .login-modal .modal-title {
        font-size: 20px;
    }
}
