/* Styles for login.html and signup.html */
body {
    background: url('../images/background.webp') center/cover no-repeat fixed;
}

/* Optional: Add a semi-transparent overlay for better readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.5); /* adjust opacity as needed */
    z-index: 0;
    pointer-events: none;
}

.login-section, .signup-section {
    position: relative;
    z-index: 1;
    padding: 4rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px); /* Adjust based on header/footer height */
}

.login-container, .signup-container {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-container h2, .signup-container h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.toggle-auth {
    margin-top: 2rem;
}

.toggle-auth a {
    color: #0077cc;
    text-decoration: none;
    font-weight: 600;
}

.toggle-auth a:hover {
    text-decoration: underline;
}

/* Forgot Password */
.forgot-password {
    margin-top: 1rem;
}

.forgot-password a {
    color: #0077cc;
    text-decoration: none;
    font-size: 0.95rem;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.form-group-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.form-group-row .form-group {
    flex: 1;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Password visibility toggle */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 2.75rem; /* space for eye icon */
}

.toggle-password-btn {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #555;
}

.toggle-password-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.toggle-password-btn:hover {
    color: #000;
} 