/**
 * CSS for the redesigned login page
 * This file contains styles for the 60/40 split layout login page
 */

/* Override the container styles for the login page */
.site-content .container {
    max-width: 100%;
    padding: 0;
}

/* Hide the three-column layout for login page */
.three-column-layout {
    display: block;
    grid-template-columns: 1fr !important;
    max-width:1000px !important;

}

.column-right {
    display: none !important;
}

.column-middle {
    min-height: auto !important;
}

/*.mobile-nav-footer {
    display: none !important;
}*/


/* Main login container */
.login-mid-container {display: flex; justify-content: center;}
.login-container {
    display: flex;
    min-height: 70vh;
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    border: 1px solid #e8e8e8;
    max-width: 1000px;
    margin-bottom: 4rem;
}

/* Left side with the form (60% width) */
.login-form-section {
    flex: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Right side with the image (40% width) */
.login-image-section {
    flex: 50%;
    background-color: var(--bg-primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
}

.email-options{
    display:grid; grid-template-columns: 1fr 1fr;
}
/* Image styling */
.login-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

/* Login header styling */
.login-header {
    margin-bottom: 1rem;
    text-align: center;
}

.login-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0rem;
    font-weight: 600;
    text-align: left;
    line-height: 1.1;
}

.login-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: left;
    font-weight: 200;
}

/* Form styling */
.login-form {
    width: 100%;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.login-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-family: var(--font-family-main);
}

.login-form .form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(59, 160, 149, 0.25);
}

.login-form .form-control::placeholder {
    color: var(--text-muted);
}

/* Remember me and forgot password row */
.form-actions {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-direction: column;
    gap: 1rem;
}

/* Remember me toggle switch */
.remember-me-wrapper {
    display: grid;
    align-items: center;
    grid-template-columns: 55px 1fr;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
    margin-right: 10px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(16px);
}

.remember-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Forgot password link */
.forgot-password {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
    text-align: right;
}

.forgot-password:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Login button */
.login-button {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--primary-color);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2sease;
}

.login-button:hover {
    background-color: var(--link-hover);
}

/* Divider with text */
.login-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--jj-first);
    z-index: 1;
}

.login-divider span {
    position: relative;
    z-index: 2;
    background-color: var(--bg-primary);
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Register link */
.register-link-container {
    text-align: center;
}

.register-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    background-color: transparent;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    transition: all 0.2s ease;
}

.register-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Alert styling */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .login-form-section {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .email-options{
    grid-template-columns: 1fr;
}
    .login-mid-container {
    display: block;    
    margin-bottom: 3rem;
    }

    .login-container {
        flex-direction: column;
        margin: 1.5rem 0rem;
    }
    
    .login-form-section {
        flex: auto;
        order: 2;
        padding: 2rem 1rem 0rem 1rem;
        margin: 1rem;
    }

    .login-subtitle{
        margin-bottom: 0rem;
        font-size: 0.9rem;
    }
    
    .login-image-section {
        flex: auto;
        order: 1;
        height: 200px;
        display: none !important;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
}