/* Login Page Specific Styles */
*{
    font-family: "IBM Plex Sans Hebrew", sans-serif;
}

.login-section {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--bg-primary);
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    background-color: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow-large);
}

.login-box {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 3rem;
}

.login-title {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.login-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.login-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    padding: 1rem 1.2rem;
    border: 2px solid var(--pale-green);
    border-radius: 10px;
    font-size: 1rem;
    background-color: var(--bg-secondary);
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-green);
    background-color: var(--bg-primary);
}

.form-group input::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.remember-me input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--secondary-green);
}

.forgot-password {
    color: var(--secondary-green);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.login-button {
    background-color: var(--secondary-green);
    color: var(--white);
    border: none;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.login-button:hover {
    background-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 80, 22, 0.2);
}

.login-button:active {
    transform: translateY(0);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.92rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--pale-green);
}

.google-auth-section {
    margin-top: 1.2rem;
}

.google-auth-label {
    margin: 0 0 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
}

.google-signin-container {
    display: flex;
    justify-content: center;
    min-height: 44px;
}

.google-auth-warning {
    width: 100%;
    border: 1px solid #e8b8b8;
    background: #fff3f3;
    color: #9f2a2a;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.google-auth-section[hidden] {
    display: none;
}

.login-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pale-green);
}

.signup-prompt {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
}

.signup-link {
    color: var(--secondary-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.login-image {
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(45, 80, 22, 0.95), rgba(45, 80, 22, 0.3));
    padding: 3rem;
    color: white;
}

.image-overlay h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.image-overlay p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Responsive Design */
@media (max-width: 968px) {
    .login-container {
        grid-template-columns: 1fr;
    }
    
    .login-image {
        display: none;
    }
    
    .login-box {
        padding: 3rem 2rem;
    }
}

@media (max-width: 600px) {
    .login-section {
        padding: 1rem;
    }
    
    .login-box {
        padding: 2rem 1.5rem;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .login-subtitle {
        font-size: 1rem;
    }
    
    .login-header {
        margin-bottom: 2rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .login-button {
        font-size: 1rem;
        padding: 1rem;
    }

    .google-auth-label {
        font-size: 0.9rem;
    }
}
