.container {
    margin: 0 auto;
    max-width: 300px;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #fff;
}
h2 {
    color: #333;
    margin-bottom: 20px;
}
input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
}
.error {
    color: #d00;
    margin-top: 10px;
    padding: 10px;
    background-color: #ffe6e6;
    border: 1px solid #ff9999;
    border-radius: 4px;
}
.success {
    color: #0a0;
    margin-top: 10px;
    padding: 10px;
    background-color: #e6ffe6;
    border: 1px solid #99ff99;
    border-radius: 4px;
}



.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ccc;
}
.auth-divider::before {
    left: 0;
}
.auth-divider::after {
    right: 0;
}
.auth-divider span {
    background: #fff;
    padding: 0 10px;
    position: relative;
    color: #666;
}
.google-signin-btn {
    width: 100%;
    padding: 10px;
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-size: 1em;
}
.google-signin-btn:hover {
    background-color: #f5f5f5;
    border-color: #999;
}
button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    font-family: Arial, sans-serif;
    font-size: 1em;
}
button[type="submit"]:hover {
    background-color: #555;
}
.google-signin-btn img {
    width: 20px;
    height: 20px;
}
.password-field {
    position: relative;
    margin-top: 5px;
    margin-bottom: 5px;
}
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    padding: 0;
    z-index: 1;
}
.password-field input {
    padding-right: 40px;
    width: 100%;
    padding: 10px 40px 10px 10px;
    margin: 0;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
#firebase-auth-section {
    margin-bottom: 20px;
}
#registration-form {
    display: none;
}
#registration-form.active {
    display: block;
}

/* Loading state styles */
#email-signup-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

#email-signup-form.loading input,
#email-signup-form.loading select,
#email-signup-form.loading button {
    cursor: not-allowed;
}

#email-signup-btn.loading {
    position: relative;
    color: transparent;
}

#email-signup-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}