﻿:root {
    --primary-color: #0528F2;
    --primary-light: rgba(5, 40, 242, 0.1);
    --secondary-color: #6C63FF;
    --dark-color: #121212;
    --darker-color: #0A0A0A;
    --light-color: #FFFFFF;
    --gray-color: #888888;
    --light-gray: #F5F5F7;
    --card-bg: rgba(30, 30, 30, 0.6);
    --card-bg-hover: rgba(40, 40, 40, 0.8);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --glass-effect: rgba(255, 255, 255, 0.05);
    --gradient-blue: linear-gradient(45deg, #0528F2, #6C63FF);
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
    --transition-slow: all 0.8s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'General Sans', sans-serif;
}

body {
    background-color: var(--darker-color);
    color: var(--light-color);
    overflow-x: clip;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

    /* Hide scrollbar but keep functionality */
    body::-webkit-scrollbar {
        width: 5px;
    }

    body::-webkit-scrollbar-track {
        background: var(--darker-color);
    }

    body::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
    opacity: 0;
    animation: fadeInCursor 0.5s ease-in-out 0.5s forwards;
}

.custom-cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    animation: fadeInCursor 0.5s ease-in-out 0.5s forwards;
}

@keyframes fadeInCursor {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Particles Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    opacity: var(--opacity, 0.2);
    animation: float var(--duration, 15s) linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-20vh) translateX(20vw);
    }

    50% {
        transform: translateY(-40vh) translateX(0);
    }

    75% {
        transform: translateY(-20vh) translateX(-20vw);
    }

    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Main Content Container */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo and Header */
.logo-container {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
}

    .logo-container img {
        height: 35px;
        transition: var(--transition-fast);
    }

/* Login Form */
.login-container {
    width: 100%;
    max-width: 450px;
    padding: 30px;
    border-radius: 16px;
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: var(--transition-medium);
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
    position: relative;
    overflow: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glow Effect */
.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient( circle at center, rgba(108, 99, 255, 0.1) 0%, rgba(5, 40, 242, 0.05) 25%, transparent 70% );
    z-index: -1;
    animation: rotateGlow 15s linear infinite;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.login-container:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.login-header {
    margin-bottom: 30px;
    text-align: center;
}

.login-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, white, #b3b3ff);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    color: var(--gray-color);
    font-size: 1rem;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transform: translateY(0);
    opacity: 1;
    transition: var(--transition-fast);
}

.input-field {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--light-color);
    transition: var(--transition-medium);
}

    .input-field:focus {
        outline: none;
        border-color: var(--primary-color);
        background: rgba(255, 255, 255, 0.07);
        box-shadow: 0 0 0 3px rgba(5, 40, 242, 0.2);
    }

.input-icon {
    position: absolute;
    right: 15px;
    top: 47px;
    color: var(--gray-color);
    transition: var(--transition-fast);
}

.input-field:focus + .input-icon {
    color: var(--primary-color);
}

.password-toggle {
    cursor: pointer;
}

.forgot-password {
    display: block;
    text-align: right;
    margin-top: -15px;
    margin-bottom: 25px;
    color: var(--gray-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

    .forgot-password:hover {
        color: var(--primary-color);
    }

.btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    outline: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(5, 40, 242, 0.3);
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: all 0.6s;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(5, 40, 242, 0.4);
    }

        .btn-primary:hover::before {
            left: 100%;
        }

.or-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--gray-color);
    font-size: 0.9rem;
}

    .or-divider::before,
    .or-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
    }

    .or-divider::before {
        margin-right: 15px;
    }

    .or-divider::after {
        margin-left: 15px;
    }

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    transition: var(--transition-fast);
    cursor: pointer;
}

    .social-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }

.signup-link {
    text-align: center;
    margin-top: 25px;
    color: var(--gray-color);
    font-size: 0.95rem;
}

    .signup-link a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition-fast);
    }

        .signup-link a:hover {
            text-decoration: underline;
        }

/* Input focus animations */
.input-field:focus ~ .input-label {
    transform: translateY(-5px);
    color: var(--primary-color);
}

/* Interactive elements cursor style */
.interactive {
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 768px) {
    .logo-container {
        top: 20px;
        left: 20px;
    }

    .login-container {
        padding: 25px 20px;
    }

    .login-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .social-login {
        flex-direction: column;
    }

    .logo-container {
        width: 100%;
        display: flex;
        justify-content: center;
        left: 0;
    }
}

/* Animation for button click */
.btn-click-effect {
    animation: buttonClick 0.3s forwards;
}

@keyframes buttonClick {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

/* Visual validation feedback */
/*.input-field.valid {
    border-color: #16c79a;
}*/

.input-field.invalid {
    border-color: #f05454;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s;
    font-weight: 600;
}

    .social-btn:hover {
        opacity: 0.85;
    }

.google-btn {
    background: #fff;
    color: #444;
    border: 1px solid #ddd;
}

.apple-btn {
    background: #000;
    color: #fff;
}

.discord-btn {
    background: #5865F2;
    color: #fff;
}

.or-divider {
    text-align: center;
    color: #888;
    margin: 16px 0;
    font-size: 13px;
    border-top: 1px solid #333;
    padding-top: 16px;
}

/* Full-height layout for mobile */
@media (max-height: 700px) {
    .container {
        padding: 80px 15px 30px;
        align-items: flex-start;
    }
}
