/* Login Page Styles */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.login-container::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg,
            rgba(74, 158, 255, 0.1) 0%,
            rgba(138, 43, 226, 0.1) 25%,
            rgba(255, 20, 147, 0.1) 50%,
            rgba(74, 158, 255, 0.1) 75%,
            rgba(138, 43, 226, 0.1) 100%);
    animation: gradient-rotate 20s linear infinite;
    z-index: 0;
}

.login-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%,
            rgba(74, 158, 255, 0.15) 0%,
            transparent 50%),
        radial-gradient(circle at 80% 80%,
            rgba(138, 43, 226, 0.15) 0%,
            transparent 50%),
        radial-gradient(circle at 40% 20%,
            rgba(255, 20, 147, 0.15) 0%,
            transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes gradient-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.login-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 26, 0.9);
}

/* Floating Geometric Shapes */
.login-container .floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.login-container .shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-color), rgba(138, 43, 226, 0.8));
    top: 10%;
    left: 5%;
    animation: float 15s ease-in-out infinite;
}

.login-container .shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.8), var(--accent-color));
    bottom: 15%;
    right: 10%;
    animation: float 12s ease-in-out infinite reverse;
}

.login-container .shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.8), rgba(255, 20, 147, 0.8));
    top: 60%;
    left: 80%;
    animation: float 18s ease-in-out infinite;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.login-header {
    margin-bottom: 2.5rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: contain;
    background: white;
    padding: 8px;
    margin: 0 auto 1.5rem;
    display: block;
}

.title-with-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.version-badge {
    display: inline-block;
    background: rgba(74, 158, 255, 0.15);
    color: var(--accent-color);
    border: 1px solid rgba(74, 158, 255, 0.3);
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.login-body {
    margin-bottom: 2rem;
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.login-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

.login-button i {
    font-size: 1.25rem;
}

.login-info {
    margin-top: 1.5rem;
}

.login-info p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin: 0;
}

.login-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.login-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-link i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }

    .login-card {
        padding: 2rem;
    }

    .login-logo {
        width: 64px;
        height: 64px;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .login-subtitle {
        font-size: 0.875rem;
    }

    .login-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .login-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-button {
        max-width: 100%;
    }
}