.animated-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
overflow: hidden;
}

.particles {
position: absolute;
width: 100%;
height: 100%;
}

.particle {
position: absolute;
background: var(--primary);
border-radius: 50%;
opacity: 0.4;
filter: blur(0.5px);
animation: float linear infinite;
}


.particle:nth-child(1) { width: 8px; height: 4px; top: 15%; left: 5%; animation-duration: 3s; animation-delay: 3s; }
.particle:nth-child(2) { width: 4px; height: 6px; top: 85%; left: 15%; animation-duration: 3s; animation-delay: 2s; }
.particle:nth-child(3) { width: 8px; height: 6px; top: 65%; left: 75%; animation-duration: 3s; animation-delay: 1s; }
.particle:nth-child(4) { width: 9px; height: 5px; top: 35%; left: 85%; animation-duration: 3s; animation-delay: 3s; }
.particle:nth-child(5) { width: 7px; height: 7px; top: 55%; left: 45%; animation-duration: 3s; animation-delay: 3s; }
.particle:nth-child(6) { width: 6px; height: 4px; top: 25%; left: 25%; animation-duration: 3s; animation-delay: 4s; }
.particle:nth-child(7) { width: 6px; height: 6px; top: 75%; left: 65%; animation-duration: 3s; animation-delay: 1s; }
.particle:nth-child(8) { width: 5px; height: 6px; top: 45%; left: 15%; animation-duration: 3s; animation-delay: 2s; }
.particle:nth-child(9) { width: 5px; height: 5px; top: 10%; left: 55%; animation-duration: 3s; animation-delay: 3s; }
.particle:nth-child(10) { width: 8px; height: 8px; top: 90%; left: 35%; animation-duration: 3s; animation-delay: 3s; }
.particle:nth-child(11) { width: 8px; height: 4px; top: 30%; left: 70%; animation-duration: 3s; animation-delay: 2s; }
.particle:nth-child(12) { width: 6px; height: 6px; top: 60%; left: 10%; animation-duration: 3s; animation-delay: 1s; }
.particle:nth-child(13) { width: 6px; height: 6px; top: 80%; left: 80%; animation-duration: 3s; animation-delay: 3s; }
.particle:nth-child(14) { width: 15px; height: 5px; top: 20%; left: 40%; animation-duration: 3s; animation-delay: 3s; }
.particle:nth-child(15) { width: 7px; height: 7px; top: 70%; left: 30%; animation-duration: 3s; animation-delay: 2s; }
.particle:nth-child(16) { width: 8px; height: 4px; top: 50%; left: 90%; animation-duration: 3s; animation-delay: 1s; }
.particle:nth-child(17) { width: 6px; height: 6px; top: 40%; left: 60%; animation-duration: 3s; animation-delay: 3s; }
.particle:nth-child(18) { width: 6px; height: 6px; top: 95%; left: 20%; animation-duration: 3s; animation-delay: 3s; }
.particle:nth-child(19) { width: 10px; height: 5px; top: 5%; left: 75%; animation-duration: 3s; animation-delay: 2s; }
.particle:nth-child(20) { width: 8px; height: 8px; top: 65%; left: 50%; animation-duration: 3s; animation-delay: 1s; }


.gradient-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: 
    radial-gradient(circle at 10% 20%, rgba(106, 13, 173, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(0, 191, 255, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 30% 60%, rgba(156, 39, 176, 0.05) 0%, transparent 35%),
    radial-gradient(circle at 70% 40%, rgba(39, 176, 176, 0.05) 0%, transparent 35%);
animation: gradientShift 20s ease infinite alternate;
}

@keyframes float {
0% {
    transform: translate(0, 0) rotate(0deg);
}
25% {
    transform: translate(50px, -30px) rotate(5deg);
}
50% {
    transform: translate(100px, 20px) rotate(0deg);
}
75% {
    transform: translate(30px, 50px) rotate(-5deg);
}
100% {
    transform: translate(0, 0) rotate(0deg);
}
}


@keyframes gradientShift {
0% {
    background-position: 10% 20%, 90% 80%, 30% 60%, 70% 40%;
}
25% {
    background-position: 15% 25%, 85% 75%, 35% 65%, 65% 45%;
}
50% {
    background-position: 20% 30%, 80% 70%, 40% 70%, 60% 50%;
}
75% {
    background-position: 15% 25%, 85% 75%, 35% 65%, 65% 45%;
}
100% {
    background-position: 10% 20%, 90% 80%, 30% 60%, 70% 40%;
}
}

.gradient-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle at 20% 50%, rgba(106, 13, 173, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(0, 191, 255, 0.1) 0%, transparent 50%);
animation: gradientShift 15s ease infinite alternate;
}

@keyframes float {
0% {
    transform: translateY(0) translateX(0);
}
50% {
    transform: translateY(-100px) translateX(50px);
}
100% {
    transform: translateY(0) translateX(0);
}
}

@keyframes gradientShift {
0% {
    background-position: 20% 50%, 80% 70%;
}
100% {
    background-position: 30% 60%, 70% 80%;
}
}

:root {
    --primary: #6a0dad;
    --primary-light: #27b0b0;
    --primary-dark: #007272;
    --secondary: #00bfff;
    --secondary-light: #ffb74d;
    --dark: #101414;
    --darker: #0a0a0a;
    --light: #ffffff;
    --light-dark: #f1efefa2;
    --gray: #757575;
    --light-gray: #e0e0e0;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode {
    --primary: #276eb0;
    --primary-light: #ba68c8;
    --primary-dark: #6888c8;
    --secondary: #4dedff;
    --secondary-light: #ffcc80;
    --dark: #80fdff;
    --darker: #f5f5f5;
    --light: #121212;
    --light-dark: #1e1e1e;
    --gray: #9e9e9e;
    --light-gray: #333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-dark: 0 5px 15px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: var(--light);
    color: var(--dark);
    padding: 0.8rem 0;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 1.8rem;
    position: relative;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle, .lang-toggle {
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.dark-mode .theme-toggle, .dark-mode .lang-toggle {
    background: rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover, .lang-toggle:hover {
    color: var(--primary);
    transform: rotate(15deg);
    background: rgba(106, 13, 173, 0.1);
}


.auth-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    background: var(--light-dark);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.auth-container:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(156, 39, 176, 0) 70%);
    opacity: 0.2;
    border-radius: 50%;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

.auth-container:after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(106, 13, 173, 0) 70%);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
    animation: float 10s ease-in-out infinite reverse;
}

.auth-image {
    flex: 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(243, 243, 243, 0.1));
    position: relative;
    overflow: hidden;
}

.dark-mode .auth-image {
    background: linear-gradient(135deg, rgba(36, 30, 41, 0.05), rgba(61, 61, 61, 0.05));
}

.auth-image img {
    max-width: 100%;
    height: auto;
    animation: bounce 6s ease-in-out infinite;
}

.auth-image-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.auth-image h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-image p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.auth-form-container {
    flex: 1;
    padding: 0.7rem;
    position: relative;
    z-index: 1;
}

.form-toggle {
    display: flex;
    margin-bottom: 2rem;
    background: rgba(106, 13, 173, 0.1);
    border-radius: 50px;
    padding: 5px;
    position: relative;
}

.form-toggle:before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 50%;
    height: calc(100% - 10px);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50px;
    transition: var(--transition);
    z-index: 0;
}

.form-toggle.register-active:before {
    left: calc(50% - 5px);
}

.form-toggle button {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background: none;
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: var(--transition);
    border-radius: 50px;
}

.form-toggle button.active {
    color: white;
}


.auth-form {
    display: none;
    animation: fadeIn 0.5s ease;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.auth-form p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 0.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light);
    color: var(--dark);
}

.dark-mode .form-control {
    background: var(--light-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.2);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 40px;
    color: var(--gray);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 0.5rem;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-button {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.auth-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3);
}

.auth-button:hover:before {
    opacity: 1;
}

.auth-button:active {
    transform: translateY(0);
}

.social-auth {
    text-align: center;
    margin-bottom: 1.5rem;
}

.social-auth p {
    position: relative;
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.social-auth p:before,
.social-auth p:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--light-gray);
}

.social-auth p:before {
    left: 0;
}

.social-auth p:after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.social-button.google {
    background: #DB4437;
}

.social-button.facebook {
    background: #4267B2;
}

.social-button.twitter {
    background: #1DA1F2;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.auth-footer {
    text-align: center;
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

footer {
    background: black;
    color: white;
    padding: 2rem 0;
    transition: var(--transition);
}

.dark-mode footer {
    background: black;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(106, 13, 173, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(106, 13, 173, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(106, 13, 173, 0);
    }
}


@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-image {
        display: none;
    }
    
    .auth-form-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .auth-section {
        padding: 5rem 0 3rem;
    }
    
    .auth-container {
        border-radius: 10px;
    }
    
    .auth-form-container {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .auth-form h2 {
        font-size: 1.5rem;
    }
}