/* --- New Signup Page Design --- */

/* Use variables from the main style.css */
:root {
    --primary-color: #0a4d68;
    --secondary-color: #088395;
    --accent-color: #f39c12;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #555;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Main container for the signup page to take full height */
.signup-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--light-color);
    padding: 20px;
}

/* Layout container for the two panels */
.signup-layout {
    display: grid;
    max-width: 1100px;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden; /* Important for border-radius on children */
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Left Info Panel Styling --- */
.signup-info {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.signup-info .info-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 30px;
}

.signup-info h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.signup-info p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 30px;
}

.signup-info ul {
    list-style: none;
    padding: 0;
}

.signup-info ul li {
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.signup-info ul li i {
    font-size: 1.2rem;
    margin-right: 15px;
    color: var(--accent-color);
}

/* --- Right Form Panel Styling --- */
.signup-container {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.signup-container h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    text-align: center;
}

.signup-container .form-intro {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
}

.signup-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.signup-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.signup-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.signup-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 77, 104, 0.1);
}

.password-toggle-icon {
    position: absolute;
    top: 40px; /* Adjust to align with the input */
    right: 15px;
    cursor: pointer;
    color: #999;
}

.form-group input.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 1em; /* Prevent layout shift */
}

.signup-form .cta-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.signup-form .cta-button:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}

.form-footer {
    text-align: center;
    margin-top: 25px;
}

.form-footer a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* --- Responsive Design --- */

/* For tablets and larger screens */
@media (min-width: 992px) {
    .signup-layout {
        grid-template-columns: 1fr 1fr;
    }
}

/* For mobile screens */
@media (max-width: 991px) {
    .signup-info {
        display: none; /* Hide info panel on mobile for a form-focused view */
    }
    .signup-container {
        padding: 30px;
    }
    .signup-main {
        padding: 0;
        background-color: #fff; /* Take over the whole background */
    }
    .signup-layout {
        border-radius: 0;
        box-shadow: none;
    }
}