body {
    font-family: Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

.container {
    display: flex;
    height: 100vh;
}

.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 40px;
}

.login-form {
    width: 100%;
    max-width: 400px; /* Reduced max-width for better proportions */
}

.form-group {
    margin-bottom: 20px;
    width: 100%; /* Ensure form groups take full width */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* Base input styles for ALL input fields */
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box; /* This ensures padding is included in width */
}

.form-group input:focus {
    outline: none;
    border-color: #7b9ac4;
}

.form-group input::placeholder {
    color: #ccc;
}

/* Password container specific styles */
.password-container {
    position: relative;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

/* Password fields get the same styling as other inputs */
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 45px; /* Space for eye icon */
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
    border-radius: 3px;
    transition: color 0.3s;
    z-index: 2;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #333;
    background-color: #f5f5f5;
}

.toggle-password:focus {
    outline: none;
    background-color: #f0f0f0;
}

.toggle-password i {
    font-size: 16px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #7b9ac4;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
    box-sizing: border-box; /* Ensure consistent sizing */
}

.login-btn:hover {
    background-color: #6a89b3;
}

.signup-text {
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
    color: #666;
}

.signup-text a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.signup-text a:hover {
    text-decoration: underline;
}

.image-section {
    flex: 1;
    overflow: hidden;
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Message styles */
.message {
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .image-section {
        display: none;
    }
    .form-section {
        padding: 20px;
    }
    .login-form {
        max-width: 100%;
    }
}