/*========================================
  LOGIN PAGE - MODERN STYLES
  Bootstrap 5.0.2 Compatible
==========================================*/

/* Animações Globais */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Layout de Autenticação */
#layoutAuthentication {
    background: linear-gradient(135deg, #02091F 0%, #030d24 50%, #02091F 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    animation: fadeIn 0.8s ease-out;
}

#layoutAuthentication_content {
    width: 100%;
}

/* Card de Login */
#layoutAuthentication .login-card {
    background-color: #070f27 !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 0 40px rgba(0, 156, 255, 0.1) !important;
    animation: fadeInUp 0.6s ease-out;
    overflow: hidden;
}

/* Logo */
#layoutAuthentication .img-logo {
    max-width: 65% !important;
    height: auto;
    transition: transform 0.3s ease;
    animation: scaleIn 0.8s ease-out 0.3s both;
}

#layoutAuthentication .img-logo:hover {
    transform: scale(1.05);
}

/* Títulos e Textos */
#layoutAuthentication h3 {
    color: #fff;
    font-size: 1.75rem;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

#layoutAuthentication .text-muted {
    color: #8a92a6 !important;
    animation: fadeIn 0.6s ease-out 0.9s both;
}

/* Badge */
#layoutAuthentication .badge.bg-primary {
    background-color: #009CFF !important;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 20px;
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

/* Input Groups */
#layoutAuthentication .input-group-modern {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

#layoutAuthentication .input-group-modern:nth-of-type(1) {
    animation: slideInLeft 0.6s ease-out 1s both;
}

#layoutAuthentication .input-group-modern:nth-of-type(2) {
    animation: slideInLeft 0.6s ease-out 1.15s both;
}

#layoutAuthentication .input-group-modern:focus-within {
    box-shadow: 0 4px 20px rgba(0, 156, 255, 0.4);
    transform: translateY(-2px);
}

#layoutAuthentication .input-group-text {
    background-color: #0d1a3d !important;
    border: none;
    color: #009CFF;
    border-right: 2px solid #1a2744;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

#layoutAuthentication .input-group-text i {
    animation: pulse 2s ease-in-out 2s infinite;
}

#layoutAuthentication .input-group-modern .form-floating {
    flex: 1;
}

#layoutAuthentication .input-group-modern .form-control {
    background-color: #0d1a3d !important;
    border: none;
    color: #fff !important;
    border-radius: 0 10px 10px 0;
    padding: 1rem 0.75rem;
    height: calc(3.5rem + 2px);
    transition: all 0.3s ease;
}

#layoutAuthentication .input-group-modern .form-control:focus {
    background-color: #0f1f47 !important;
    box-shadow: none;
    color: #fff !important;
}

#layoutAuthentication .input-group-modern .form-control::placeholder {
    color: #6c7589;
}

#layoutAuthentication .input-group-modern label {
    color: #8a92a6;
    padding: 1rem 0.75rem;
}

#layoutAuthentication .input-group-modern .form-control:focus ~ label,
#layoutAuthentication .input-group-modern .form-control:not(:placeholder-shown) ~ label {
    color: #009CFF;
}

/* Botão de Login */
#layoutAuthentication .btn-dark {
    color: #fff !important;
    background-color: #009CFF !important;
    border: none !important;
    width: 200px;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(0, 156, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 1.3s both;
}

#layoutAuthentication .btn-dark:hover {
    background-color: #0088dd !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 156, 255, 0.5);
}

#layoutAuthentication .btn-dark:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 156, 255, 0.4);
}

/* Alerts */
#layoutAuthentication .alert {
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

#layoutAuthentication .alert-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
}

#layoutAuthentication .alert-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

#layoutAuthentication .alert i {
    font-size: 1.1rem;
}

/* Responsividade */
@media (max-width: 768px) {
    #layoutAuthentication .login-card {
        margin-top: 2rem !important;
        border-radius: 15px !important;
    }
    
    #layoutAuthentication .card-body {
        padding: 2rem 1.5rem !important;
    }
    
    #layoutAuthentication .img-logo {
        max-width: 75% !important;
    }
    
    #layoutAuthentication h3 {
        font-size: 1.5rem;
    }
    
    #layoutAuthentication .btn-dark {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    #layoutAuthentication .login-card {
        margin-top: 1rem !important;
        border-radius: 12px !important;
    }
    
    #layoutAuthentication .card-body {
        padding: 1.5rem 1rem !important;
    }
    
    #layoutAuthentication .img-logo {
        max-width: 80% !important;
    }
    
    #layoutAuthentication h3 {
        font-size: 1.3rem;
    }
    
    #layoutAuthentication .input-group-modern .form-control {
        font-size: 0.95rem;
    }
}

/* Fallback Styles */
#layoutAuthentication .bg-dark {
    background-color: #02091F !important;
}

