* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0d0d0d;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(107, 70, 193, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(159, 122, 234, 0.1) 0%, transparent 50%);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.auth-card {
    background-color: #1a1a1a;
    border: 2px solid #6B46C1;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(107, 70, 193, 0.3);
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    height: 120px;
    width: auto;
    margin-bottom: 1rem;
}

.logo-container h1 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tagline {
    color: #9F7AEA;
    font-size: 0.9rem;
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-button {
    flex: 1;
    padding: 0.75rem;
    background-color: transparent;
    color: #a0a0a0;
    border: 1px solid #333333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.tab-button.active {
    background-color: #6B46C1;
    color: white;
    border-color: #6B46C1;
}

.tab-button:hover:not(.active) {
    border-color: #6B46C1;
    color: #9F7AEA;
}

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

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

.form-group label {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    padding: 0.75rem;
    background-color: #0d0d0d;
    border: 1px solid #6B46C1;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #9F7AEA;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.2);
}

.form-group small {
    color: #a0a0a0;
    font-size: 0.8rem;
}

.auth-button {
    padding: 0.875rem;
    background-color: #6B46C1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.auth-button:hover {
    background-color: #9F7AEA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.4);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links a {
    color: #9F7AEA;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: #B794F4;
    text-decoration: underline;
}

.terms {
    text-align: center;
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-top: 1rem;
}

.terms a {
    color: #9F7AEA;
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

.error-message {
    background-color: rgba(218, 54, 51, 0.1);
    border: 1px solid #da3633;
    color: #ff7b72;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.9rem;
    display: none;
}

.success-message {
    background-color: rgba(35, 134, 54, 0.1);
    border: 1px solid #238636;
    color: #7ee83f;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.9rem;
    display: none;
}

.usage-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333333;
}

.usage-info h3 {
    color: #9F7AEA;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.usage-info ul {
    list-style: none;
    padding: 0;
}

.usage-info li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.usage-info li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #6B46C1;
    font-weight: bold;
}

/* Loading state */
.auth-button:disabled {
    background-color: #333333;
    cursor: not-allowed;
    transform: none;
}

.auth-button.loading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Guest section */
.guest-section {
    margin-top: 2rem;
    text-align: center;
}

.divider {
    position: relative;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #333333;
}

.divider span {
    position: relative;
    background-color: #1a1a1a;
    padding: 0 1rem;
    color: #a0a0a0;
    font-size: 0.875rem;
}

.guest-button {
    width: 100%;
    padding: 0.875rem;
    background-color: transparent;
    color: #9F7AEA;
    border: 2px solid #6B46C1;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.guest-button:hover {
    background-color: #6B46C1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.4);
}

.guest-info {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #a0a0a0;
}

/* Responsive design */
@media (max-width: 480px) {
    .auth-container {
        padding: 10px;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .logo-container h1 {
        font-size: 1.5rem;
    }
    
    .auth-tabs {
        gap: 0.5rem;
    }
    
    .tab-button {
        font-size: 0.9rem;
        padding: 0.625rem;
    }
}