/* Authentication Styles */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
    perspective: 1000px;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    background: rgba(18, 19, 26, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    z-index: 10;
}

.auth-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(130, 71, 225, 0.2);
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .auth-title {
    background: linear-gradient(135deg, var(--text-heading), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-links a {
    font-weight: 600;
}

/* 3D background elements */
.animated-3d-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

/* 3D rotating cube in background */
.cube-3d {
    width: 120px;
    height: 120px;
    position: absolute;
    top: 15%;
    left: 10%;
    transform-style: preserve-3d;
    animation: rotateCube 16s linear infinite;
    opacity: 0.15;
}

.cube-3d .face {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(130, 71, 225, 0.4), rgba(99, 102, 241, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(130, 71, 225, 0.3);
}

.cube-3d .front  { transform: rotateY(0deg) translateZ(60px); }
.cube-3d .back   { transform: rotateY(180deg) translateZ(60px); }
.cube-3d .left   { transform: rotateY(-90deg) translateZ(60px); }
.cube-3d .right  { transform: rotateY(90deg) translateZ(60px); }
.cube-3d .top    { transform: rotateX(90deg) translateZ(60px); }
.cube-3d .bottom { transform: rotateX(-90deg) translateZ(60px); }

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

/* 3D floating sphere */
.sphere-3d {
    position: absolute;
    width: 150px;
    height: 150px;
    bottom: 12%;
    right: 10%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(130, 71, 225, 0.5) 0%, rgba(10, 11, 16, 0.9) 70%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset -10px -10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(130, 71, 225, 0.1);
    opacity: 0.25;
    animation: floatSphere 10s ease-in-out infinite;
}

@keyframes floatSphere {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}
