/* Account Page Styles */

/* Layout */
.account-split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Navigation Override */
.account-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

/* Left Side: 3D Visual */
.account-visual {
    flex: 1;
    background: #0f172a;
    /* Always dark for visual impact */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    pointer-events: none;
}

.scene-3d {
    position: relative;
    width: 400px;
    height: 400px;
    perspective: 1000px;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 3D Cube Logo */
.floating-logo-3d {
    position: relative;
    width: 120px;
    height: 120px;
    transform-style: preserve-3d;
    animation: float-rotate 10s linear infinite;
}

.cube {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
}

.face {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(5px);
}

.face.front {
    transform: translateZ(60px);
}

.face.back {
    transform: rotateY(180deg) translateZ(60px);
}

.face.right {
    transform: rotateY(90deg) translateZ(60px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(60px);
}

.face.top {
    transform: rotateX(90deg) translateZ(60px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(60px);
}

/* Orbit Rings */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(75deg);
}

.ring-1 {
    width: 240px;
    height: 240px;
    animation: spin-ring 8s linear infinite;
}

.ring-2 {
    width: 360px;
    height: 360px;
    animation: spin-ring 12s linear infinite reverse;
    border-color: rgba(255, 255, 255, 0.05);
}

/* Particles */
.floating-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #ef4444;
}

.p1 {
    top: 0;
    left: 50%;
    animation: orbit-p1 4s linear infinite;
}

.p2 {
    top: 50%;
    right: 0;
    animation: orbit-p2 6s linear infinite;
}

.p3 {
    bottom: 0;
    left: 20%;
    animation: orbit-p3 5s linear infinite;
}

.visual-text {
    margin-top: 80px;
    text-align: center;
    color: white;
    z-index: 10;
    opacity: 0;
    animation: fade-up 1s ease-out forwards 0.5s;
}

.visual-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.visual-text p {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* Right Side: Form */
.account-form-container {
    flex: 1;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    transition: background-color 0.3s;
}

.form-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.dark-mode .form-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

/* Tabs */
.auth-tabs {
    display: flex;
    background: var(--bg-body);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.dark-mode .auth-tabs {
    background: #0f172a;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.dark-mode .auth-tab.active {
    background: #1e293b;
}

/* Form Elements */
.auth-form {
    display: none;
    animation: fade-in 0.3s ease;
}

.auth-form.active {
    display: block;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.2s;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-body);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input-wrapper input:focus+.input-icon {
    color: var(--primary);
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.forgot-password {
    color: var(--primary);
    font-weight: 500;
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-bottom: 24px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider span {
    padding: 0 10px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-body);
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.theme-toggle-wrapper {
    position: absolute;
    bottom: 40px;
    right: 40px;
}

/* Animations */
@keyframes float-rotate {
    0% {
        transform: rotateX(0) rotateY(0) translateY(0);
    }

    50% {
        transform: rotateX(10deg) rotateY(180deg) translateY(-20px);
    }

    100% {
        transform: rotateX(0) rotateY(360deg) translateY(0);
    }
}

@keyframes spin-ring {
    0% {
        transform: translate(-50%, -50%) rotateX(75deg) rotateZ(0);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(75deg) rotateZ(360deg);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .account-split-layout {
        flex-direction: column;
    }

    .account-visual {
        display: none;
        /* Hide visual on mobile for focus */
    }

    .account-nav {
        position: relative;
        background: var(--bg-surface);
    }
}