/* ==============================================
   LOGIN MODERNO - DESIGN APRIMORADO
   Portal MGMT - Apollo TI Solutions
   ============================================== */

/* ==============================================
   CONTAINER PRINCIPAL
   ============================================== */

.login-container-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 50%, #F1F3F4 100%);
    position: relative;
    overflow: hidden;
}

.login-container-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 217, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 217, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 217, 0, 0.02) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ==============================================
   CARD DE LOGIN
   ============================================== */

.login-card-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==============================================
   LOGO E BRANDING
   ============================================== */

.logo-container-modern {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.logo-container-modern img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    animation: logoFloat 3s ease-in-out infinite;
    opacity: 0.8;
}

.logo-apollo-discreto {
    width: 50px !important;
    height: 50px !important;
    opacity: 0.6 !important;
    filter: grayscale(0.2) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.03)) !important;
    transition: all 0.3s ease;
}

.logo-apollo-discreto:hover {
    opacity: 0.8 !important;
    transform: scale(1.05);
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-container-modern h3 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--apollo-yellow), var(--apollo-yellow-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-container-modern p {
    color: #666;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* ==============================================
   FORMULÁRIOS
   ============================================== */

.login-option {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Estilos removidos - labels não são mais necessários */

/* ==============================================
   CAMPOS DE INPUT
   ============================================== */

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

.form-label-modern {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control-modern {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #1a1a1a;
}

.form-control-modern:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-control-modern::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* ==============================================
   BOTÕES
   ============================================== */

.btn-microsoft-modern {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--apollo-yellow), var(--apollo-yellow-dark));
    color: var(--apollo-gray-800);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
}

.btn-microsoft-modern::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: left 0.5s;
}

.btn-microsoft-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 217, 0, 0.3);
    text-decoration: none;
    color: var(--apollo-gray-800);
}

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

.btn-microsoft-modern:active {
    transform: translateY(0);
}

.btn-traditional-modern {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--apollo-gray-600), var(--apollo-gray-700));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
}

.btn-traditional-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3);
    text-decoration: none;
    color: white;
}

.btn-traditional-modern:active {
    transform: translateY(0);
}

/* ==============================================
   LOADING STATES
   ============================================== */

.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading .loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-loading .btn-text {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==============================================
   DIVISOR
   ============================================== */

.divider-modern {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.divider-modern::before,
.divider-modern::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

.divider-modern span {
    padding: 0 1.5rem;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
}

/* ==============================================
   ALERTAS
   ============================================== */

.alert-modern {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    animation: slideIn 0.5s ease-out;
}

.alert-modern-danger {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-modern-info {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* ==============================================
   INFORMAÇÕES ADICIONAIS
   ============================================== */

.login-info {
    text-align: center;
    margin-top: 1.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

.login-info i {
    margin-right: 0.5rem;
    color: #9ca3af;
}

/* ==============================================
   RESPONSIVIDADE
   ============================================== */

@media (max-width: 768px) {
    .login-container-modern {
        padding: 1rem;
    }
    
    .login-card-modern {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .logo-container-modern h3 {
        font-size: 1.75rem;
    }
    
    .logo-container-modern img {
        width: 50px;
        height: 50px;
    }
    
    .logo-apollo-discreto {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 480px) {
    .login-card-modern {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .logo-container-modern h3 {
        font-size: 1.5rem;
    }
    
    .logo-apollo-discreto {
        width: 35px !important;
        height: 35px !important;
    }
    
    .form-control-modern {
        padding: 0.875rem 1rem;
    }
    
    .btn-microsoft-modern,
    .btn-traditional-modern {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* ==============================================
   ANIMAÇÕES DE ENTRADA
   ============================================== */

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

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

/* ==============================================
   ACESSIBILIDADE
   ============================================== */

.btn-microsoft-modern:focus,
.btn-traditional-modern:focus,
.form-control-modern:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ==============================================
   DARK MODE SUPPORT
   ============================================== */

@media (prefers-color-scheme: dark) {
    .login-card-modern {
        background: rgba(17, 24, 39, 0.95);
        color: #f9fafb;
    }
    
    .logo-container-modern h3 {
        color: #f9fafb;
    }
    
    .form-control-modern {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .form-control-modern:focus {
        border-color: #667eea;
        background: #4b5563;
    }
}
