/**
 * Login_Page.css
 * -------------
 * Description:
 *     Core styles for the authentication system of the Geometric Learning System.
 *     Implements a responsive design for login, password reset, and related pages
 *     with consistent styling and modern UI elements.
 *
 * Author: Karin Hershko and Afik Dadon
 * Date: February 2025
 */

/* === Layout System === */
.login-container {
    display: flex;
    min-height: calc(100vh - 160px);
    padding: 3rem;
    justify-content: center;
    align-items: stretch;
    font-family: 'Heebo', sans-serif;
    gap: 2rem;
}

.login-form {
    flex: 0 1 600px;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.login-image-section {
    flex: 0 1 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1rem;
    min-height: 400px;
    overflow: hidden;
}

.login-image-section img {
    max-width: 500px;
    max-height: 500px;
    object-fit: contain;
}

/* === Typography === */
.login-form h1 {
    color: #3F4D57;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
}

/* === Form Elements === */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    color: #3F4D57;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #B2A4C8;
    border-radius: 0.5rem;
    font-size: 14px;
    transition: border-color 0.3s;
    text-align: right;
}

input:focus {
    border-color: #4169e1;
    outline: none;
}

/* === Password Input === */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #3F4D57;
    cursor: pointer;
    padding: 0.5rem;
}

/* === Buttons === */
.login-button {
    width: 50%;
    justify-content: center;
    padding: 1rem;
    background-color: #4169e1;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 2rem auto 0;
    display: block;
}

.login-button:hover {
    background-color: #3F4D57;
}

/* === Navigation Links === */
.additional-options {
    margin-top: 1.5rem;
    text-align: center;
}

.register-link,
.forgot-password-link,
.back-to-login {
    color: #3F4D57;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.register-link:hover,
.forgot-password-link:hover,
.back-to-login:hover {
    color: #8FD694;
}

.forgot-password-link {
    display: block;
    margin-top: 1rem;
}

/* === Feedback States === */
.error-message {
    color: #ff0000;
    font-size: 12px;
    margin-top: 5px;
}

input.error {
    border-color: #ff0000;
}

.success-message {
    text-align: center;
    color: #4CAF50;
    padding: 20px;
    background-color: #E8F5E9;
    border-radius: 8px;
    margin: 20px 0;
}

/* === Responsive Design === */
@media screen and (max-width: 768px) {
    .login-container {
        flex-direction: column;
        padding: 1rem;
    }

    .login-image-section {
        display: none;
    }

    .login-form {
        max-width: 100%;
    }
}