.login-container {
    display: flex;
    flex-wrap: wrap;
    margin: 2em 0;
    gap: 2em;
    min-height: 70vh;
}

.login-form-wrapper {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 5px 10px rgba(0, 0, 0, 0.02);
    padding: 2.5em;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.login-benefits {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, #4361ee, #3730a3);
    border-radius: 12px;
    padding: 2.5em;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.login-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover;
    opacity: 0.08;
    z-index: 0;
}

.login-header {
    margin-bottom: 2em;
    text-align: center;
}

.login-header h2 {
    color: #333;
    margin-bottom: 0.5em;
    font-weight: 700;
    font-size: 2rem; /* Explicit font size */
}

.login-header p {
    color: #666;
    font-size: 1em;
}

.login-form {
    margin-bottom: 1.5em;
}

.form-group {
    margin-bottom: 1.5em;
}

.form-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #444;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.input-with-icon input {
    padding-left: 45px !important;
    width: 100%;
    height: 50px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.input-with-icon input:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5em;
}

.remember-me-container {
    display: flex;
    align-items: center;
}

.remember-me-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9em;
    color: #555;
}

.remember-me-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: auto;
    position: relative;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.remember-me-label span {
    margin-left: 5px;
}

.forgot-password a {
    color: #4361ee;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #2845e0;
    text-decoration: underline;
}

.form-submit {
    margin-top: 1.5em;
}

.login-button {
    width: 100%;
    background: #4361ee;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.login-button:hover {
    background: #2845e0;
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(67, 97, 238, 0.3), 0 3px 6px rgba(67, 97, 238, 0.2);
}

.login-footer {
    text-align: center;
    padding-top: 1.5em;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #666;
}

.login-footer a {
    color: #4361ee;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.benefits-header {
    margin-bottom: 2em;
    position: relative;
    z-index: 1;
}

.benefits-header h3 {
    color: #fff;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.benefits-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1em;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2em 0;
    position: relative;
    z-index: 1;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1.2em;
    color: rgba(255, 255, 255, 0.9);
}

.benefits-list li i {
    font-size: 1.2em;
    margin-right: 10px;
    width: 24px;
    text-align: center;
}

.data-security-badge {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 2em;
    position: relative;
    z-index: 1;
}

.data-security-badge i {
    font-size: 2em;
    margin-right: 15px;
}

.data-security-badge p {
    margin: 0;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
}

.error-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    display: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    margin: auto;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    padding: 1.5em;
    background: #f8fafc;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.close-modal {
    font-size: 1.5em;
    cursor: pointer;
    color: #888;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 1.5em;
}

.modal-body p {
    margin-bottom: 1.5em;
    color: #666;
}

.reset-button {
    width: 100%;
    background: #4361ee;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.reset-button:hover {
    background: #2845e0;
}

.message-container {
    padding: 12px;
    margin-top: 15px;
    border-radius: 4px;
    display: none;
}

.message-container.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: block;
}

.message-container.error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    display: block;
}

/* Fix for SEO heading */
.seo-heading {
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    font-size: 1rem; /* Setting a default font size */
}

@media screen and (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-form-wrapper, 
    .login-benefits {
        width: 100%;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .modal-content {
        width: 95%;
    }
}
