:root {
    --primary-color: #2D3436;
    --accent-color: #0984E3;
    --text-color: #2D3436;
    --light-text: #636E72;
    --background: #FFFFFF;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #74EBD5 0%, #9FACE6 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 2rem;
    transition: transform 0.3s ease;
}

.form-container:hover {
    transform: translateY(-5px);
}

h1 {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    color: var(--text-color);
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    padding: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.1);
}

button[type="submit"] {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: #000;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
    accent-color: var(--accent-color);
}

.message {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.error {
    background: rgba(255, 0, 0, 0.1);
    color: #d63031;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.signup-link, p {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* Avatar selection styles */
.robohash-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.robohash-options label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.robohash-options label:hover {
    transform: translateY(-5px);
}

.robohash-options img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.robohash-options input[type="radio"] {
    display: none;
}

.robohash-options input[type="radio"]:checked + img {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.2);
}

h2 {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .form-container {
        margin: 1rem;
        padding: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    .robohash-options {
        grid-template-columns: repeat(2, 1fr);
    }
}