/* Reset e Variáveis */
:root {
    --primary-color: #9100d4;
    --secondary-color: #ff009d;
    --background: #16161A;
    --text-light: #FFFFFE;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --glass-bg: rgba(57, 57, 57, 0.109);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: var(--background);
    color: var(--text-light);
    min-height: 100vh;
}

/* Preloader */
#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Header */
/* Container Geral */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

  /* Glassmorphism Navigation Header */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 1.8s ease-in-out;
    padding: 1rem 0;
}

.glass-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: rotate(-10deg);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: var(--secondary-color);
}
/* Container Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background: url("../static/images/image_k3xN7Jk__1730838138756_raw.jpg") no-repeat center/cover;
}

.login-wrapper {
    background: transparent;
    border: 2px solid whitesmoke;
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(40px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 400px;
    text-align: center;
    color: #fff;
    animation: fadeInUp 1s ease-out;
    margin-top: 100px;
    margin-bottom: 0px;
}

.login-header {
    text-align: center;
}

.gradient-text {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;    
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 5px 30px rgba(255, 255, 255, 0.301);
}

/* Formulário */
.floating-input {
    position: relative;
    margin: 1.5rem 0;
}

.floating-input input {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.floating-input label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-input input:focus,
.floating-input input:valid {
    border-bottom-color: var(--primary-color);
    outline: none;
}

.floating-input input:focus ~ label,
.floating-input input:valid ~ label {
    transform: translateY(-180%);
    font-size: 0.8rem;
    color: var(--primary-color);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.floating-input input:focus ~ .input-border {
    width: 100%;
}

/* Botão Login */
.btn-login {
    background-size: 200% 200%;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #9100d4,#ff009d);
    border: none;
    border-radius: 12px;
    color: var(--text-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s;
}

.btn-login:hover {
    background: linear-gradient(135deg, #5100ff, #ff0080);
    transform: scale(1.1);
    animation: gradientAnimation 2s ease infinite;
    box-shadow: 0 4px 15px rgba(255, 102, 178, 0.4);
}

/* Links */
.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.link-hover {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.link-hover:hover {
    color: var(--primary-color);
}

.error-message {
    color: #41007e;
    background: rgba(255, 107, 107, 0.1);
    font-weight: bold;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 15px;
    margin-bottom: 1.5rem;
    border: 1px solid #ff004c;
    box-shadow: 0 0 15px #ffffff;
    animation: float 2s ease infinite;
}

/* Animações */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hover-glow:hover {
    text-shadow: 0 0 10px rgba(127, 90, 240, 0.5);
}

.gradient-hover {
    transition: background 0.3s ease;
}

.gradient-hover:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}



@media (max-width: 768px) {
.nav-links{
    margin-right: 30px;
    margin-top: 10px;
    flex-direction: column;
}
}