@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root {
    --primary-color: #6a1b9a;
    --secondary-color: #9c27b0;
    --card-bg: rgba(255, 255, 255, 0.9);
    --input-bg: rgba(255, 255, 255, 0.95);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #1a1a1a;
}

.login-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

/* Adiciona partículas mágicas */
.magical-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.magical-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float 6s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        transform: translateY(-100px) translateX(30px);
        opacity: 0.8;
    }
}

.magic-book-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/background-login.png') no-repeat center center;
    background-size: cover;
    z-index: 0;
}

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(135deg, 
        rgba(106, 27, 154, 0.8),
        rgba(156, 39, 176, 0.8));
    z-index: 1;*/
}

.container {
    position: relative;
    z-index: 2;
}

.login-logo {
    max-width: 350px; /* Aumentado de 200px para 350px */
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    animation: logoFadeIn 1s ease-out;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
                0 0 15px rgba(156, 39, 176, 0.2),
                0 0 30px rgba(106, 27, 154, 0.1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: all 0.4s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /*animation: cardFloat 6s ease-in-out infinite; */
}

.login-card:hover {
    transform: translateY(-5px) translateZ(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(156, 39, 176, 0.3),
                0 0 40px rgba(106, 27, 154, 0.2);
}

/*@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) translateZ(0);
    }
    50% {
        transform: translateY(-10px) translateZ(5px);
    }
}*/

.login-card h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    background: var(--input-bg);
    border: 2.5px solid rgba(156, 39, 176, 0.3);
    border-radius: 15px;
    padding: 1rem 1.2rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05),
                0 0 0 4px rgba(156, 39, 176, 0.1);
    outline: none;
}

.form-group label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-control::placeholder {
    color: rgba(106, 27, 154, 0.4);
    font-weight: 300;
}

.form-control:focus {
    transform: translateY(-2px);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.05);
    outline: none;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(156, 39, 176, 0.25);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--primary-color);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(106, 27, 154, 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: 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 27, 154, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.2);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
