:root {
    --primary: #00f2fe;
    --secondary: #4facfe;
    --accent: #f093fb;
    --accent-2: #f5576c;
    --bg-dark: #0f172a;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(79, 172, 254, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(240, 147, 251, 0.15) 0%, transparent 40%);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 0;
    box-sizing: border-box;
    color: #fff;
    overflow-x: hidden;
}

/* 3D Shapes in Background */
.shape {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -50px;
    right: -50px;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 50px) rotate(30deg);
    }
}

.auth-container {
    width: 90%;
    max-width: 450px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    padding: 0;
    margin: 20px auto;
}

.register-wide {
    max-width: 550px;
}

.auth-header {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
}

.auth-header img {
    max-width: 140px;
    margin-bottom: 10px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
}

.auth-content {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #94a3b8;
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 14px;
    color: #fff;
    box-sizing: border-box;
    transition: all 0.3s;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 242, 254, 0.1);
}

.btn-auth {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.3);
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(79, 172, 254, 0.5);
}

.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    text-align: center;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #94a3b8;
}

.auth-footer hide-desktop {
    display: none;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Tabs for Registration */
.nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.nav-tabs::-webkit-scrollbar {
    height: 3px;
}

.nav-tabs::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.nav-tabs .nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 8px;
    transition: 0.3s;
    flex-shrink: 0;
}

.nav-tabs .nav-link.active {
    background: var(--glass);
    color: #fff;
    border: 1px solid var(--glass-border);
}

/* Responsive Utilities for Auth */
@media (max-width: 600px) {
    .stack-on-mobile {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .auth-content {
        padding: 25px;
    }

    .auth-header {
        padding: 30px 20px;
    }

    .auth-header h1 {
        font-size: 20px;
    }
}