/* Estilos melhorados para o botão de voltar */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #6c63ff 0%, #a764ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
    z-index: 1000;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    animation: pulse-light 2s infinite;
}

.back-button:hover {
    transform: translateX(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
}

.back-button:active {
    transform: translateX(-2px) scale(0.98);
}

.back-button i {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.back-button:hover i {
    transform: translateX(-3px);
}

@keyframes pulse-light {
    0% {
        box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
    }
    50% {
        box-shadow: 0 5px 20px rgba(108, 99, 255, 0.5);
    }
    100% {
        box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
    }
}

/* Melhorias para o estilo geral do auth */
.auth-card {
    animation: card-entrance 0.5s ease-out;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.1);
    z-index: 0;
}

.auth-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 99, 132, 0.1);
    z-index: 0;
}

@keyframes card-entrance {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    position: relative;
    overflow: hidden;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 120%;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(-5deg);
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -10px;
    width: 120%;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(3deg);
}

.form-input:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    transition: transform 0.6s;
    opacity: 0;
}

.btn-primary:hover::after {
    transform: rotate(30deg) translate(100%, 100%);
    opacity: 1;
}