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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.signup-container,
.login-container,
.forgot-container {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(30px) saturate(200%) brightness(1.1);
    -webkit-backdrop-filter: blur(30px) saturate(200%) brightness(1.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.25rem;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.forgot-container {
    max-width: 535px;
}

@media (max-width: 480px) {
    body {
        padding: 0.75rem;
    }
    
    .signup-container,
    .login-container,
    .forgot-container {
        padding: 1.25rem 1.5rem; /* Slightly less top padding for cat space */
        border-radius: 0.75rem;
    }
    
    .forgot-container {
        padding: 1.618rem;
        border-radius: 0.618rem;
    }
    
    .logo {
        margin-bottom: 1.5rem; /* Less space since cat has more margin */
    }
    
    .logo h1 {
        font-size: 1.75rem; /* Slightly smaller on mobile */
    }
    
    .logo p {
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .forgot-container .logo h1 {
        font-size: 1.25rem;
    }
}

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

.forgot-container .logo {
    margin-bottom: 1.618rem;
}

.logo h1 {
    color: #f1f5f9;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
}

.forgot-container .logo h1 {
    font-size: 1.618rem;
    margin-bottom: 0.618rem;
}

.logo p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    display: block;
}

.forgot-container .logo p {
    font-size: 1rem;
}

.genesis-notice {
    background: rgba(251, 191, 36, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.genesis-notice .emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.genesis-notice .title {
    color: #fbbf24;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.genesis-notice .description {
    color: #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.warning {
    background: rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(239, 68, 68, 0.5);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    color: #fecaca;
    font-size: 0.95rem;
    line-height: 1.6;
}

.warning strong {
    color: #fef2f2;
    font-weight: 700;
    font-size: 1rem;
}

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

.tab {
    flex: 1;
    padding: 0.75rem;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.625rem;
    color: #94a3b8;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.tab:hover {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.tab.active {
    background: rgba(59, 130, 246, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(59, 130, 246, 0.5);
    color: #fff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

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

.forgot-container .form-group {
    margin-bottom: 1.618rem;
}

label {
    display: block;
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.forgot-container label {
    font-size: 1rem;
    margin-bottom: 0.618rem;
}

input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.625rem;
    color: #f1f5f9;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.forgot-container input {
    padding: 0.618rem 1rem;
    border-radius: 0.618rem;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.forgot-container input:focus {
    border-color: rgba(251, 146, 60, 0.5);
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

input::placeholder {
    color: #64748b;
}

button {
    width: 100%;
    padding: 0.875rem;
    background: rgba(59, 130, 246, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.625rem;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.forgot-container button {
    padding: 0.618rem 1.618rem;
    border-radius: 0.618rem;
    font-size: 1rem;
    background: rgba(251, 146, 60, 0.9);
    border: 1px solid rgba(251, 146, 60, 0.3);
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.2);
}

button:hover {
    background: rgba(37, 99, 235, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.forgot-container button:hover {
    background: rgba(249, 115, 22, 0.95);
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
}

button:disabled {
    background: rgba(71, 85, 105, 0.8);
    cursor: not-allowed;
    transform: none;
}

/* AI Button - distinct color for Playground access */
.ai-button {
    width: 100%;
    padding: 0.875rem;
    background: rgba(139, 92, 246, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.625rem;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
}

.ai-button:hover {
    background: rgba(124, 58, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-back {
    background: rgba(71, 85, 105, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.forgot-container .btn-back {
    margin-top: 0.618rem;
}

.btn-back:hover {
    background: rgba(100, 116, 139, 0.9);
}

.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.forgot-container .error {
    padding: 0.618rem;
    border-radius: 0.618rem;
    font-size: 1rem;
}

.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.forgot-container .success {
    padding: 0.618rem;
    border-radius: 0.618rem;
    font-size: 1rem;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.help-text {
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.forgot-container .help-text {
    font-size: 0.875rem;
    margin-top: 0.618rem;
}

.otp-group {
    display: flex;
    gap: 0.75rem;
}

.otp-group input {
    flex: 1;
}

.otp-group button {
    flex-shrink: 0;
    width: auto;
    padding: 0.75rem 1.5rem;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #64748b;
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 1rem;
}

.google-btn {
    width: 100%;
    padding: 0.875rem;
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.625rem;
    color: #333;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.google-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.link {
    text-align: center;
    margin-top: 1.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.forgot-container .link {
    margin-top: 1.618rem;
    font-size: 1rem;
}

.link a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.link a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.links-container {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.links-container a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.links-container a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.info-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    padding: 0.618rem;
    border-radius: 0.618rem;
    font-size: 0.875rem;
    margin-bottom: 1.618rem;
    text-align: center;
}

.hidden {
    display: none !important;
}

.helper-text {
    color: #888;
    margin-top: 0.5rem;
    display: block;
    font-size: 0.85rem;
}
