/**
 * Registration_Page.css
 * -------------------
 * Description:
 *     Styles for the registration page, providing a clean and responsive design
 *     with proper form layout, animations, and visual feedback for user interactions.
 *
 * Author: Karin Hershko and Afik Dadon
 * Date: February 2025
 */

/* Container Layout */
.registration-container {
    display: flex;
    min-height: calc(100vh - 160px);
    padding: 3rem;
    justify-content: center;
    align-items: stretch;
    font-family: 'Heebo', sans-serif;
    gap: 2rem;
}

/* Form Section */
.registration-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);
}

/* Image Section */
.registration-image-section {
    flex: 0 1 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1rem;
    min-height: 400px;
    overflow: hidden;
}

.registration-image-section img {
    max-width: 500px;
    max-height: 500px;
    object-fit: contain;
}

/* Typography */
.registration-form h1 {
    color: #3F4D57;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
}

/* Form Layout */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Form Elements */
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;
}

/* Submit Button */
.register-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-top: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.register-button:hover {
    background-color: #3F4D57;
}

/* Additional Options */
.additional-options {
    margin-top: 1.5rem;
    text-align: center;
}

.login-link {
    color: #3F4D57;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.login-link:hover {
    color: #8FD694;
}

/* Error States */
.error-message {
    color: #ff0000;
    font-size: 12px;
    margin-top: 5px;
}

input.error {
    border-color: #ff0000;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideDown 0.5s ease forwards;
}

.alert-error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Animations */
@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .registration-container {
        flex-direction: column;
        padding: 1rem;
    }

    .registration-image-section {
        display: none;
    }

    .registration-form {
        max-width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .register-button {
        width: 100%;
        font-size: 20px;
    }
}