/* General Styles */
* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('sign up login background.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Navbar Styles */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.8);
    width: 100%;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-logo a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #5c6bc0;
}

/* Container Styles */
.container {
    width: 400px;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 30px;
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* Header and Text */
.container h1,
.container h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.container p {
    text-align: center;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Input Space */
.input-space {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.input-space input,
.input-space select {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border: 1px solid white;
    border-radius: 20px;
    background: transparent;
    color: white;
    font-size: 14px;
}

.input-space input::placeholder,
.input-space select option {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Input Icons */
.input-space i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

/* Error Messages (Signup Only) */
.signup-page .error-message {
    font-size: 12px;
    color: #ff6b6b;
    margin-top: -15px;
    margin-bottom: 15px;
    text-align: left;
    display: block;
}

.login-page .error-message {
    display: none; /* Hide error messages on the login page */
}

/* Password Requirements */
.signup-page .password-requirements {
    display: block; /* Visible on signup page */
    position: relative;
    font-size: 12px;
    margin-top: -10px;
    color: rgba(255, 255, 255, 0.7);
}

.signup-page .password-requirements .requirement {
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.signup-page .password-requirements .requirement::before {
    content: '✕'; /* Default icon for unmet requirement */
    color: #ff6b6b;
    position: absolute;
    left: 0;
}

.signup-page .password-requirements .requirement.valid::before {
    content: '✓'; /* Icon for met requirement */
    color: #69db7c;
}

.login-page .password-requirements {
    display: none; /* Hide password requirements on the login page */
}

/* Button */
.login-button {
    width: 100%;
    padding: 12px;
    background: #5c6bc0;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-button:hover {
    background: #426558;
}

/* Register Section */
.register {
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}

.register a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.register a:hover {
    text-decoration: underline;
}

/* Validation Styles */
.input-space.error input {
    border-color: #ff6b6b;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        width: 90%;
        padding: 15px;
    }
}
