/**
 * Estilos específicos para a tela de login e autenticação
 */

/* Definição de variáveis RGB para uso em rgba */
:root {
    --primary-rgb: 67, 97, 238;
    --secondary-rgb: 114, 9, 183;
}

.auth-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.auth-bg::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('/assets/images/auth-pattern.svg');
    background-size: cover;
    opacity: 0.04;
    pointer-events: none;
}

.auth-card {
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 450px;
    width: 100%;
    animation: cardFadeIn 0.6s ease-out forwards;
}

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

.auth-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
}

.auth-logo {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo i {
    margin-right: 0.75rem;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: var(--dark-40);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.auth-form {
    padding: 0 2rem 2rem;
}

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

.auth-form .form-label {
    color: var(--dark-60);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.auth-form .input-group {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.auth-form .input-group-text {
    background-color: var(--white);
    border-right: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

.auth-form .form-control {
    border-left: none;
    padding-left: 0.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form .input-group-focus {
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.2);
}

.auth-form .input-group-focus .input-group-text {
    color: var(--primary-dark);
}

.auth-form .input-group-focus .form-control:focus {
    border-color: var(--primary-light);
}

.auth-form .invalid-feedback {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.auth-form .btn-login {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.auth-form .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.auth-form .btn-login:active {
    transform: translateY(0);
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-links a:hover {
    color: var(--secondary);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--gray-light);
}

.auth-divider span {
    padding: 0 1rem;
    color: var(--dark-40);
    font-size: 0.875rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
}

.auth-footer .text-muted {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Efeitos visuais adicionais */
.auth-form .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.auth-form small.form-text {
    color: var(--dark-40);
    font-size: 0.85rem;
}

/* Formas flutuantes */
.floating-shapes div {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    border-radius: 50%;
    opacity: 0.05;
    animation: float 15s infinite;
}

.floating-shapes div:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -100px;
    animation-delay: 0s;
}

.floating-shapes div:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: -50px;
    animation-delay: 5s;
}

.floating-shapes div:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 50%;
    right: 10%;
    animation-delay: 2s;
}

.floating-shapes div:nth-child(4) {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 10%;
    animation-delay: 7s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Responsividade */
@media (max-width: 576px) {
    .auth-card {
        margin: 0 15px;
    }
    
    .auth-header {
        padding: 1.5rem 1rem 0.5rem;
    }
    
    .auth-form {
        padding: 0 1rem 1.5rem;
    }
    
    .auth-logo {
        font-size: 2rem;
    }
    
    .auth-logo i {
        font-size: 2.25rem;
    }
}
