:root {
    --primary-dark: #0b0025;
    --primary-medium: #1a0a3a;
    --primary-light: #321c70;
    --accent: #7a2be2;
    --accent-light: #9a4aff;
    --accent-glow: #bf7fff;
    --text-light: #f0e6ff;
    --text-dark: #1a0033;
    --neon-purple: #9d4edd;
    --neon-blue: #5e17eb;
    --glass-bg: rgba(26, 10, 58, 0.8);
    --glass-border: rgba(138, 43, 226, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --neon-glow: 0 0 10px rgba(138, 43, 226, 0.5), 0 0 20px rgba(138, 43, 226, 0.3);
    --text-glow: 0 0 5px rgba(177, 74, 255, 0.7);
}

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(154, 74, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(196, 144, 255, 0.1) 0%, transparent 50%);
    position: relative;
    overflow-x: hidden;
}

/* Efeitos de background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--accent-light);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0);
    }

    100% {
        transform: translateY(-100px) translateX(20px);
    }
}

.hex-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M50 0L93.3 25v50L50 100L6.7 75V25L50 0z' fill='none' stroke='%239a4aff' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 80px 80px;
}

.scan-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(154, 74, 255, 0.05) 50%,
            transparent 100%);
    z-index: -1;
    animation: scanline 8s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Container de login */
.login-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.login-card {
    display: flex;
    background: rgba(15, 5, 38, 0.7);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6), 0 0 60px rgba(77, 5, 232, 0.2);
    border: 1px solid rgba(154, 74, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-light), transparent);
    opacity: 0.5;
}

.login-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-light), transparent);
    opacity: 0.5;
}

/* Lado do logo */
.logo-side {
    flex: 1;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: rgba(26, 10, 58, 0.4);
    overflow: hidden;
}

.logo-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(77, 5, 232, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.logo-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
}

.main-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: white;
    text-shadow:
        0 0 5px var(--accent-light),
        0 0 10px var(--accent-light),
        0 0 20px var(--accent);
    margin-bottom: 15px;
    position: relative;
}

.logo-line {
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-light), transparent);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.logo-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, white, transparent);
    animation: line-scan 3s ease-in-out infinite;
}

@keyframes line-scan {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

/* Lado do formulário */
.form-side {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.login-header {
    margin-bottom: 30px;
    text-align: left;
}

.login-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-light);
    font-family: 'Rajdhani', sans-serif;
}

.highlight-text {
    color: var(--accent-light);
    position: relative;
}

/* Formulário */
.cyber-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 10px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-light);
    font-size: 1.2rem;
    z-index: 2;
}

input {
    width: 100%;
    padding: 12px 0 12px 30px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

label {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(240, 230, 255, 0.7);
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.input-wrapper.focus label,
input:valid+label {
    top: 0;
    font-size: 0.8rem;
    color: var(--accent-light);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(154, 74, 255, 0.5);
    transition: all 0.3s ease;
}

.input-wrapper.focus .input-line {
    height: 2px;
    background: var(--accent-light);
    box-shadow: 0 0 8px var(--accent);
}

/* Opções de formulário */
.form-options {
    display: flex;
    justify-content: flex-end;
    font-size: 0.9rem;
    margin-top: -10px;
    margin-bottom: 10px;
}

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

.forgot-password:hover {
    text-shadow: 0 0 5px var(--accent-light);
}

/* Botão */
.cyber-button {
    padding: 12px 20px;
    background: var(--primary-light);
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 15px;
    box-shadow: 0 0 10px rgba(123, 31, 162, 0.5);
}

.cyber-button::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 ease;
}

.cyber-button:hover {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

.cyber-button:hover::before {
    left: 100%;
}

/* Link de registro */
.register-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 25px;
    gap: 8px;
}

.register-link p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.register-button {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.register-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-light);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.register-button:hover {
    text-shadow: 0 0 5px var(--accent-light);
}

.register-button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Alertas */
.cyber-alert {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 20px;
    background: rgba(255, 50, 50, 0.1);
    border-left: 3px solid #ff3232;
    border-radius: 4px;
    font-size: 0.9rem;
}

.cyber-alert i {
    margin-right: 10px;
    font-size: 1.2rem;
    color: #ff3232;
}

.cyber-alert .close-alert {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1rem;
}

.cyber-alert .close-alert:hover {
    color: white;
}

/* Responsividade */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        max-width: 500px;
        margin: 0 auto;
    }

    .logo-side {
        padding: 30px 20px;
    }

    .main-logo {
        font-size: 3rem;
    }

    .form-side {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .login-card {
        border-radius: 8px;
    }

    .logo-side {
        padding: 20px;
    }

    .main-logo {
        font-size: 2.5rem;
    }

    .form-side {
        padding: 20px;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }
}

/* Estilo para o contêiner do logo */
.logo-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(26, 10, 58, 0.5);
    padding: 10px;
    border: 1px solid var(--accent);
    box-shadow: 0 0 15px rgba(154, 74, 255, 0.5);
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 15px rgba(154, 74, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 25px rgba(154, 74, 255, 0.7);
    }

    100% {
        box-shadow: 0 0 15px rgba(154, 74, 255, 0.5);
    }
}

/* Ajuste no layout da seção de logo */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Contêiner para a animação de notas musicais */
.music-notes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    overflow: hidden;
    border-radius: 10px 0 0 10px;
}

#musicNotesCanvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Ajuste para posicionamento relativo da área do logo */
.logo-side {
    position: relative;
    overflow: hidden;
}

/* Garantir que o logo e o texto apareçam por cima das notas musicais */
.logo-image-container, .main-logo, .logo-line {
    position: relative;
    z-index: 2;
}