:root {
    --primary: #0ff8c8;
    --primary-dark: #00d4aa;
    --secondary: #1a1a2e;
    --accent: #16213e;
    --text: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --background: #0a0a0a;
    --surface: #1a1a1a;
    --surface-light: #2a2a2a;
    --error: #ff4757;
    --warning: #ffa502;
    --success: #2ed573;
    --border: #333;
    --shadow: 0 10px 40px rgba(0, 248, 200, 0.1);
}

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

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 80%, rgba(0, 248, 200, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 248, 200, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(0, 212, 170, 0.03) 0%, transparent 50%);
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.signup-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
}

.signup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 20px 20px 0 0;
}

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

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 248, 200, 0.3);
    margin-bottom: 0.5rem;
}

.logo p {
    color: var(--text-secondary);
    font-size: 1rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

form input, form select {
    width: 100%;
    padding: 1rem;
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

form input:focus, form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 248, 200, 0.2);
}

input::placeholder {
    color: var(--text-secondary);
}

.password-strength {
    margin-top: 0.5rem;
    display: none;
}

.strength-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak { background: var(--error); }
.strength-medium { background: var(--warning); }
.strength-strong { background: var(--success); }

.strength-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--primary);
}

.checkbox-group label {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
    cursor: pointer;
}

.btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--background);
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 248, 200, 0.3);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

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

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--background);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--text-secondary);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

.enterprise-auth {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.standard-auth {
    margin-top: 2rem;
}

.auth-providers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
}

.auth-provider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-provider:hover {
    border-color: var(--primary);
    background: rgba(0, 248, 200, 0.05);
    transform: translateY(-2px);
}

.auth-provider.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-provider.disabled:hover {
    transform: none;
    border-color: var(--border);
    background: var(--surface-light);
}

.provider-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-link {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
}

.login-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

.error-message {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: var(--error);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: none;
}

.success-message {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: var(--success);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: none;
}

.human-verification {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--surface-light);
    border-radius: 15px;
    border: 1px solid var(--border);
    text-align: center;
}

.verification-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.verification-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.verification-indicator.validating {
    background: var(--warning);
    animation: pulse 2s ease-in-out infinite;
}

.verification-indicator.success {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.verification-indicator.error {
    background: var(--error);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.text-muted {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.verification-highlight {
    color: var(--primary);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 248, 200, 0.5);
}

.verification-warning {
    color: var(--warning);
    font-weight: bold;
}

.verification-progress {
    color: var(--primary);
}

@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }

    .signup-card {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-providers {
        grid-template-columns: 1fr;
    }

    .logo h1 {
        font-size: 2rem;
    }
}
