* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --secondary: #06b6d4;
    --accent: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    --accent-light: #fbbf24;
    --dark: #0a0e23;
    --light: #f8fafc;
    --gray: #6c757d;
    --gradient: linear-gradient(135deg, #7c3aed, #06b6d4);
    --gradient-dark: linear-gradient(135deg, #6d28d9, #0891b2);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    background: linear-gradient(135deg, #0a0e23, #1d2b53, #7e2553);
    color: var(--light);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Анимированный фон */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    opacity: 0.1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d2b53, #7e2553);
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: 10%;
    animation-delay: 7s;
    background: linear-gradient(135deg, #7e2553, #ff004d);
}

.shape-3 {
    width: 350px;
    height: 350px;
    bottom: 10%;
    left: 15%;
    animation-delay: 14s;
    background: linear-gradient(135deg, #0a0e23, #1d2b53);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    33% {
        transform: translateY(-30px) rotate(5deg) scale(1.05);
    }

    66% {
        transform: translateY(20px) rotate(-5deg) scale(0.95);
    }
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 5s infinite ease-in-out;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    animation: particle-float 2s infinite linear;
    background-size: cover;
    background-position: center;
    webkit-filter: drop-shadow(0 0 15px);
    /*box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);*/
    filter: box-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

@keyframes particle-float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    5% {
        opacity: 0.2;
    }

    95% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}

.particle:nth-child(3n+1) {
    background-image: url('/res/va-bank_logo_mini.png');
}

.particle:nth-child(3n+2) {
    background-image: url('/res/va-bank_logo_mini.png');
}

.particle:nth-child(3n+3) {
    background-image: url('/res/va-bank_logo_mini.png');
}

.meteors {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.meteor {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 5px;
    opacity: 0;
    background-size: cover;
    background-position: center;

}

.meteor:nth-child(3n+1) {
    background-image: url('/res/va-bank_logo_mini.png');
}

.meteor:nth-child(3n+2) {
    background-image: url('/res/va-bank_logo_mini.png');
}

.meteor:nth-child(3n+3) {
    background-image: url('/res/va-bank_logo_mini.png');
}

@keyframes meteor {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(-15deg);
    }

    5% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(-150vw) translateY(150vh) rotate(-15deg);
    }
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-nav {
    display: flex;
    align-items: center;
}


.home-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    padding: 13px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.home-button:hover {
    background: var(--gradient-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

.home-button i {
    font-size: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 150px;
    height: 50px;
}

.logo-image {
    width: 60px;
    height: auto;
    display: block;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

main {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
}

.auth-container {
    background: rgba(30, 41, 59, 0.4);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}


.tab-button {
    padding: 13px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.tab-button.active {
    background: var(--gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

.tab-button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}


.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: white;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-option input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked {
    border-color: var(--secondary);
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--secondary);
    border-radius: 50%;
}


.btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn:hover {
    background: var(--gradient-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

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

.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    color: var(--primary);
    text-decoration: underline;
}

footer {
    background: rgba(10, 14, 35, 0.3);
    padding: 1rem 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    min-height: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    background: var(--gradient);
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.5));
    font-size: 0.9rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.social-link:hover {
    background: var(--gradient);
    transform: translateY(-2px);
}


/* Responsive */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    header {
        padding: 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
    }

    .home-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .home-button span {
        display: none;
    }

    .home-button i {
        font-size: 1.2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .tab-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-container {
        order: 1;
    }

    .header-nav {
        order: 2;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .home-button span {
        display: inline;
    }
}